Lecture 20 | Programming Methodology (Stanford)
Top Comments
All Comments (23)
-
Great lecture for simply having a full program explained from beginning to end. Tip: copy and paste the code into Eclipse first and play around with it before the lecture. (don't forget the GFace class.) The code is available as a handout under lecture 21 on the Stanford website. interactors-examples.pdf Print out the PDF to follow it as he goes through it and then watch the lecture twice. Great way to get to grips with the coding. Thank you Stanford!
-
same problem here with eclipse in both windows/linux
-
Hard to understand because of the poor sound quality.
-
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.
-
@meesternadim You just want to have add(GObject) :P Hopefully that helped your 2 month old project..
-
@zfjquery half?
-
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?
-
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?
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 9 months ago 6
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 2 months ago 2