Program runs off book's cd
Sorry about the empty post before.
I am also using that book (O'Reilly's Learning Java), and the code from the
accompanying cd compiles and runs. I find that book a little bit fast moving,
right from the start. Ivor Horton's book from Wrox takes about 20-30 pages
to explain Swing and making windows and JFrames and the like, (vs about 3
pages in the beginning of the OReilly book) which I found very helpful. He
starts with a basic JFrame window, just a title bar with working close box:
public class TryWindow
static JFrame aWindow = new JFrame("This is the window title");
public static void main( String  args)
aWindow.setBounds(50,100,400,150); //position and size
Construct the JFrame, set the size, make it close, and make it visible.
Hope this helps.
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center