Extremely plain window’s picture is given below that is made by the demonstration application FrameDemo. Source code could be found in FrameDemo.java. FrameDemo could be run (downloading JDK6, or later.)
How to setup a frame has been shown in the given code of FrameDemo.
//1. Create the frame.
JFrame frame = new JFrame("FrameDemo");
//2. Optional: What happens when the frame closes?