Brings up a internal dialog panel where the number of choices
is determined by the optionType
parameter.
parentComponent | determines the Frame
in which the dialog is displayed; if null ,
or if the parentComponent has no
Frame , a default Frame is used | |
message | the object to display in the dialog; a
Component object is rendered as a
Component ; a String
object is rendered as a string; other objects
are converted to a String using the
toString method | |
title | the title string for the dialog | |
optionType | an integer designating the options
available on the dialog: YES_NO_OPTION ,
or YES_NO_CANCEL_OPTION |
Diagram: JOptionPane