This site, http://docs.oracle.com/javase/tutori...nts/frame.html, has this sample code
I tried to use it in an eclipse project of my own (purely for fun, not homework), and two of the methods, SetDefaultClose and getContentPanel are expecting identifiers. By the way, I haven't programmed in Java in ages and am trying to get back into it by building a very simple game.
//1. Create the frame.
JFrame frame = new JFrame("FrameDemo");
//2. Optional: What happens when the frame closes?
//3. Create components and put them in the frame.
//4. Size the frame.
//5. Show it.