Java Reference
In-Depth Information
LISTING 6.9
continued
}
}
DISPLAY
The first parameter to the showMessageDialog and the showConfirmDialog
methods specifies the governing parent component for the dialog box. Using a
null reference as this parameter causes the dialog box to appear centered on the
screen.
Many of the JOptionPane methods allow the programmer to tailor the con-
tents of the dialog box. Furthermore, the showOptionDialog method can be used
to create dialog boxes that combine characteristics of the three basic formats for
more elaborate interactions.
 
Search WWH ::




Custom Search