Java Reference
In-Depth Information
However, you might want to provide a longer or shorter delay (the millisToDecideToPopup
property of ProgressMonitor ) before the pop-up window is displayed.
Table 9-7. ProgressMonitorInputStream Property
Property Name
Data Type
Access
progressMonitor
ProgressMonitor
Read-only
JColorChooser Class
You can think of a JColorChooser as an input-only JOptionPane whose input field asks you to
choose a color. Like a JOptionPane , the JColorChooser is just a bunch of components in a
container, not a ready-to-use pop-up window. Figure 9-18 shows how a JColorChooser might
appear in your own application window. At the top are three selectable color chooser panels;
at the bottom is a preview panel. The “I Love Swing” bit is not part of the chooser, but of the
application that contains the chooser.
Figure 9-18. JColorChooser sample
In addition to appearing within your application windows, the JColorChooser class also
provides support methods for automatically placing the group of components in a JDialog .
Figure 9-19 shows one such automatically created pop-up.
Search WWH ::




Custom Search