<<< A7 Simple Two-Button Program, cont. | Index | Swing Layouts >>> |
To add a component to a JFrame, we must use JFrame.contentPane( ).
In addition, JFrame maintains title, border, and optional menu bar.
By default, JFrame is displayed in the upper-left corner of the screen. To display window at specific location, use JFrame.setLocation(x,y) method.
See also: http://www.javabeginner.com/jframe.htm tutorial on the web.
<<< A7 Simple Two-Button Program, cont. | Index | Swing Layouts >>> |