This chapter discusses two Swing chooser components—
JColorChooser—that are used to select files and colors, respectively.
File choosers, like option panes—see “JOptionPane”—are lightweight components that are meant to be placed in a dialog. Once an instance of
JFileChooser has been instantiated, it can be added to a dialog. Additionally, the
JFileChooser class provides methods that add ...