this is a special acm library and not the regular acm. proceed with caution. i learned this the hard way. this is a classroom novice version of java, specially formatted thanks to the help of their 'special' acm library. e.g he says the components will show up in the order in which they are added. this is not true in all layouts. this is only true in layouts like Boxlayout. in flowlayout you could end up putting all your components on top of eachother which is not good.
this is not working for me. all i get is the applet window with the button and the console window in the center like it is supposed to ...but when i press the button nothing happens. i imported all the packages including the acm.program jar file and I am using the 1.7 JDK. it is typed out exactly like his. I am using the stanford eclipse version helios.
When i run the program, the appearing window is very small, when i enlarge it, the buttons disapear, how can i solve it and is there a way to start the application in the center of the screen and bigger?
This comment has received too many negative votesshow
lol this is programming methodology, why the hell does he uses spaces to seperate controlls? yea its not wrong but especially in a class that teaches METHODOLOGY you shouldnt be doing things like that.
It is a proprietary package for learning java and I don't think it is freely available. Also, Stanford foilks have edited the programming environment and made it optimal for learning methodoloy of programming and not necessarily the grammer of the language. That's the reason why they don't start stand-alone programs with 'public static void main()'. It is always a run() method, i.e. they are using threads under the hood... pretty neat i say!
can someone tell me where can i find this version of eclipse ? ... i tried all kinds of eclipse and all kinds of jdk ... even thoese from CS106A software .... but i still couldn.t import acm.graphics.*; or acm.program.*;
this is a special acm library and not the regular acm. proceed with caution. i learned this the hard way. this is a classroom novice version of java, specially formatted thanks to the help of their 'special' acm library. e.g he says the components will show up in the order in which they are added. this is not true in all layouts. this is only true in layouts like Boxlayout. in flowlayout you could end up putting all your components on top of eachother which is not good.
chattychar 1 month ago
Hard to understand because of the poor sound quality.
grunder20 2 months ago
this is not working for me. all i get is the applet window with the button and the console window in the center like it is supposed to ...but when i press the button nothing happens. i imported all the packages including the acm.program jar file and I am using the 1.7 JDK. it is typed out exactly like his. I am using the stanford eclipse version helios.
chattychar 2 months ago
@chattychar
same problem here with eclipse in both windows/linux
mervobrago 1 month ago
i geet these 2 errors:
The method add(Component, int) in the type Container is not applicable for the arguments (GObject, int, int)
and:
The method add(Component, int) in the type Container is not applicable for the arguments (GObject, int, int)
How do i solve it?
meesternadim 7 months ago
@meesternadim You just want to have add(GObject) :P Hopefully that helped your 2 month old project..
MechanismsMinecraft 4 months ago in playlist Course | Programming Methodology
When i run the program, the appearing window is very small, when i enlarge it, the buttons disapear, how can i solve it and is there a way to start the application in the center of the screen and bigger?
meesternadim 7 months ago
for those who have difficulties in adding acm libraries should do:
-Right click on your project folder in the package explorer
-Choose "properties" at the bottom
-Choose "Java Build Path" and the "Libraries" tab there
-Click "Add External JARs..."
-Find where you saved the jar file and choose it
vallygs 8 months ago 5
This Professer is liked very much by student in online .
flowewritharoma 10 months ago
Compared to WPF this is a toy.
dimipeli 1 year ago
just 8 and half lectures away !!
zfjquery 1 year ago
@zfjquery half?
pker5range 5 months ago
This comment has received too many negative votes show
lol this is programming methodology, why the hell does he uses spaces to seperate controlls? yea its not wrong but especially in a class that teaches METHODOLOGY you shouldnt be doing things like that.
aydoooo 1 year ago
hmmm
mylastnameiskhan 2 years ago
It is a proprietary package for learning java and I don't think it is freely available. Also, Stanford foilks have edited the programming environment and made it optimal for learning methodoloy of programming and not necessarily the grammer of the language. That's the reason why they don't start stand-alone programs with 'public static void main()'. It is always a run() method, i.e. they are using threads under the hood... pretty neat i say!
nsakic 2 years ago
Comment removed
TCPQD 2 years ago
can someone tell me where can i find this version of eclipse ? ... i tried all kinds of eclipse and all kinds of jdk ... even thoese from CS106A software .... but i still couldn.t import acm.graphics.*; or acm.program.*;
aafsd1423 2 years ago
Hi aafsd1423,
Did you try to import the Karel assignment stuff and give it another go? It contains the acm libraries.
Other than that I love these classes.
TCPQD 2 years ago
If still needed,
acm package doesn't belong to eclipse neither to jdk. try to search acm.jar or copy that file as TCPQD says.
And yes great classes!
jgromero79 2 years ago
Comment removed
iamacyborg 2 years ago
see(dot)stanford(dot)edu/see/materials/icspmcs106a/assignments.aspx
It's included in the .zip file for Assignment 2.
iamacyborg 2 years ago
This has been flagged as spam show
very bad style, using the button label as a command..
holya22 3 years ago