Table of Contents
If you’re new to Java Swing:
- First, please be sure to check out a brief introduction to Java Swing and its architecture.
- Second, you can start developing the first Swing application.
If you’re looking for a specific Swing component to learn how to work with its API, you can find each of them in the following categories:
Layout Manager
Swing provides you various layout managers to allow you to arrange swing components inside a container.
Java Swing Button Components
Swing offers various button types such as push button, toggle button, check box and radio buttons. Push button and toggle button can display text, icon or both. You will find out each kind of button in this part.
List, ComboBox and Spinner Components
List and combobox share the same characteristics that allow users to make single or multiple choices. A Spinner enables users to click and spin through a set of choices, one at a time.
Bounded-range Components
JScrollBar, JProgressBar and JSlider use the same model: bounded-range model so those components are often referred as bounded-range components.
Text Components
Swing provides an extensive collection of classes such as JTextField, JTextArea, JPasswordField and JEditorPane for creating text fields in the applications.
Dialog Boxes
Swing allows you to create various dialog box types ranging from simple dialog with JOptionPane , JFileChooser, JColorChooser to complex dialog such as JDialog.
Menu and ToolBar
Swing provides you with very easy to use APIs to help create flexible and popup menu. In addition, Swing also has JToolBar class to allow you to create toolbars, which usually use with menu to provide users with shortcuts for menu items.
Swing Table
Swing provides you with JTable API to represent data in tabular format. With JTable you can display database records, stock quotes and sale data in a visual way. Beside displaying, JTable also allows you to create editable fields embeded inside its cells.