Summary
In this chapter, you learned about Swing’s JSpinner component. When your set of choices is limited to a fixed set or a range of values, a JSpinner allows you to select a value by spinning through the different choices. You learned how that set of choices could be provided: from a set of dates with the SpinnerDateModel and DateEditor, with the SpinnerListModel and ListEditor, or via the SpinnerNumberModel and NumberEditor.
Chapter 15 moves beyond selection from a range of values and on to where a user actually types in the whole content in the different text components.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2005 John Zukowski
About this chapter
Cite this chapter
(2005). Spinner Model Controls. In: The Definitive Guide to Java Swing. Apress. https://doi.org/10.1007/978-1-4302-0033-8_14
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0033-8_14
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)