Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
A JFrame is the object that represents a window on the screen. It’s where you put all the interface things like buttons, checkboxes, text fields, and so on. It can have an honest-to-goodness menu bar with menu items. And it has all the little windowing icons for whatever platform you’re on, for minimizing, maximizing, and closing the window.
“If I see one more command-line app, you’re fired.”
The JFrame looks different depending on the platform you’re on. This is a JFrame on Mac OS X:
Once you have a JFrame, you can put things (‘widgets’) in it by adding them to the JFrame. There are a ton of Swing components you can add; look for them in the javax.swing package. The most common include JButton, JRadioButton, JCheckBox, JLabel, JList, JScrollPane, JSlider, JTextArea, JTextField, and JTable. Most are really simple to use, but some (like JTable) can be a bit more complicated.