Summary
This chapter described the components that can be toggled: JToggleButton, JCheckBox, and JRadioButton. You’ve seen how each component uses the JToggleButton. ToggleButtonModel class for its data model and how you can group the components into a ButtonGroup. In addition, you also saw how to handle selection events for each of the components.
Chapter 6 explains how to work with the various menu-oriented Swing components.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2005 John Zukowski
About this chapter
Cite this chapter
(2005). Toggle Buttons. In: The Definitive Guide to Java Swing. Apress. https://doi.org/10.1007/978-1-4302-0033-8_5
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0033-8_5
Publisher Name: Apress
Print ISBN: 978-1-59059-447-6
Online ISBN: 978-1-4302-0033-8
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)