Java Reference
In-Depth Information
Summary
This chapter has demonstrated how to use Swing's
JList
and
JComboBox
components. You've
seen how both components support their own data model, renderer, selection capabilities,
and even a custom editor for the
JComboBox
component. Although all these capabilities are
customizable, each of the components is readily usable with its default configuration.
In Chapter 14, you will start to explore the Swing text components, including
JTextField
and
JTextArea
.