In the previous lesson we defined separate listeners for each event.
Common GUI components
The javax.swing package contains several useful graphical components that you can use in your applications. In this series of lessons you will learn:
- How to use JFrame to provide a desktop window
- How to use JLabel for a piece of non-editable text
- How to use JTextField for single-line editable text
- How to use JTextArea for multiple-line editable text
- How to use JButton to create buttons
- How to use JCheckBox to provide user options
- How to use JRadioButton to provide mutually exclusive user options
- How to use JComboBox to allow selection of a value from a range
- How to use JSlider to allow selection of a value from a range
- How to use JSpinner to allow selection of a value from a range
- How to use JList to provide a list of related objects
- How to use JTable to provide a spreadsheet-style list of objects
- How to use JTree to provide a list of objects that are hierarchical
- How to use JSplitPane to divide your screen into moveable sections
- How to use JTabbedPane to divide your screen into tabbed sections
- How to use JDialog to create separate dialogue boxes
- How to use JOptionPane to create separate dialogue boxes
Comments