Java Reference
In-Depth Information
Summary
In this chapter, you explored the intricacies of Swing's pop-up and chooser classes. Instead of
manually creating a JDialog and filling it with the necessary pieces, the Swing component set
includes support for many different pop-up and chooser classes. Starting with the JOptionPane ,
you learned how to create informational, question, and input pop-ups. In addition, you
explored how to monitor the progress of time-consuming tasks by using the ProgressMonitor
and ProgressMonitorInputStream classes.
After looking at the more general pop-up classes, you explored the specifics of Swing's
color and file chooser classes: JColorChooser and JFileChooser . From each of these two classes,
you can prompt the user for the requested input and customize the display in more ways than
you can imagine.
Now that you have a feel for the predefined pop-ups, it is time to move on to the
LayoutManager classes in Chapter 10. With the help of the system layout managers, you can
create even better user interfaces.
Search WWH ::




Custom Search