Added: 3 years ago
From: StanfordUniversity
Views: 32,173
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:
see all

All Comments (22)

Sign In or Sign Up now to post a comment!
  • 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.

  • 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.

  • @chattychar

    same problem here with eclipse in both windows/linux

  • 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 You just want to have add(GObject) :P Hopefully that helped your 2 month old project..

  • 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

  • This Professer is liked very much by student in online .

  • Compared to WPF this is a toy.

  • just 8 and half lectures away !!

  • @zfjquery half?

  • hmmm

  • 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!

  • Comment removed

  • 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.*;

  • 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.

  • 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!

  • Comment removed

  • see(dot)stanford(dot)edu/see/m­aterials/icspmcs106a/assignmen­ts.aspx

    It's included in the .zip file for Assignment 2.

Loading...
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more