<<< A Simple Two-Button Program | 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:
<<< A Simple Two-Button Program | Index | Swing Layouts >>> |