JCheckBox - Swing Check Box Class

This chapter provides tutorial notes and example codes on JCheckBox class. Topics include description of the javax.swing.JCheckBox class and its methods; example program of creating check boxes and event listeners; example program of identify selected check boxes.

javax.swing.JCheckBox and Related Methods

ActionListener, ChangeListener and ItemListener

isSelected() - Getting State of Check Box

Takeaways:

Sample programs listed in this chapter have been tested with JDK 1.3.1 to JDK 20 on Windows and macOS computers.

Table of Contents

 About This Book

 JDK (Java Development Kit)

 Introduction of Java Swing Package

 Graphics Environment of the Local System

 JFrame - Main Frame Class

 JLabel - Swing Label Class

 JButton - Swing Button Class

JCheckBox - Swing Check Box Class

 JRadioButton - Swing Radio Button Class

 JTextField - Swing Text Field Class

 JComboBox - Swing Combo Box Class

 Menu Bar, Menus, Menu Items and Listeners

 Creating Internal Frames inside the Main Frame

 Layout of Components in a Container

 LookAndFeel and UIManager

 Option Dialog Boxes

 JEditorPane - The Editor Pane Class

 SwingWorker - The Background Task Worker

 AWT (Abstract Windows Toolkit)

 Integration with Desktop System

 Archived Tutorials

 References

 Full Version in PDF/EPUB