Chapter 4
Choosing from a List
In This Chapter
Combo boxes
Lists
Spinners
Trees
A whole category of Swing components is designed to let the user choose one or more items from a list. This chapter presents four such controls. The first three — JList, JComboBox, and JSpinner — are straightforward. The fourth — JTree — is a bit more complicated but worth the effort.
Using Combo Boxes
Get Java All-in-One For Dummies, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.