JDialog | createDialog(Component parentComponent, String title)- This method creates a new JDialog that is either centered around the
parent's frame or centered on the screen (if the parent is null).
|
JInternalFrame | createInternalFrame(Component parentComponent, String title)- This method creates a new JInternalFrame that is in the JLayeredPane
which contains the parentComponent given.
|
AccessibleContext | getAccessibleContext()- Returns the object that provides accessibility features for this
JOptionPane component.
|
static JDesktopPane | getDesktopPaneForComponent(Component parentComponent)- This method returns the JDesktopPane for the given parentComponent or
null if none can be found.
|
static Frame | getFrameForComponent(Component parentComponent)- This method returns the Frame for the given parentComponent or null if
none can be found.
|
Icon | getIcon()- This method returns the icon displayed.
|
Object | getInitialSelectionValue()- This method returns the value initially selected from the list of values
the user can input.
|
Object | getInitialValue()- This method returns the value that is focused from the list of options.
|
Object | getInputValue()- This method returns the value that the user input.
|
int | getMaxCharactersPerLineCount()- This method returns the maximum characters per line.
|
Object | getMessage()- This method returns the message displayed.
|
int | getMessageType()- This method returns the message type.
|
int | getOptionType()- This method returns the option type.
|
Object[] | getOptions()- This method returns the options.
|
static Frame | getRootFrame()- This method returns the Frame used by JOptionPane dialog's that have no
parent.
|
Object[] | getSelectionValues()- This method returns the selection values.
|
OptionPaneUI | getUI()- This method returns the UI used by the JOptionPane.
|
String | getUIClassID()- This method returns an identifier to determine which UI class will act as
the UI.
|
Object | getValue()- This method returns the value that the user selected out of options.
|
boolean | getWantsInput()- This method returns whether this JOptionPane wants input.
|
protected String | paramString()- This method returns a String that describes this JOptionPane.
|
void | selectInitialValue()- This method requests focus for the initial value.
|
void | setIcon(Icon newIcon)- This method changes the icon property.
|
void | setInitialSelectionValue(Object newValue)- This method changes the initial selection property.
|
void | setInitialValue(Object newValue)- This method changes the initial value property.
|
void | setInputValue(Object newValue)- This method changes the inputValue property.
|
void | setMessage(Object newMessage)- This method changes the message property.
|
void | setMessageType(int newType)- This method changes the messageType property.
|
void | setOptionType(int newType)- This method changes the optionType property.
|
void | setOptions(Object[] newOptions)- This method changes the options property.
|
static void | setRootFrame(Frame newRootFrame)- This method changes the Frame used for JOptionPane dialogs that have no
parent.
|
void | setSelectionValues(Object[] newValues)- This method changes the selectionValues property.
|
void | setUI(OptionPaneUI ui)- This method sets the UI used with the JOptionPane.
|
void | setValue(Object newValue)- This method sets the value has been selected out of options.
|
void | setWantsInput(boolean newValue)- This method changes the wantsInput property.
|
static int | showConfirmDialog(Component parentComponent, Object message)- This method shows a confirmation dialog with the title "Select an Option"
and displays the given message.
|
static int | showConfirmDialog(Component parentComponent, Object message, String title, int optionType)- This method shows a confirmation dialog with the given message,
optionType and title.
|
static int | showConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType)- This method shows a confirmation dialog with the given message, title,
messageType and optionType.
|
static int | showConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon)- This method shows a confirmation dialog with the given message, title,
optionType, messageType and icon.
|
static String | showInputDialog(Component parentComponent, Object message)- This method will show a QUESTION_MESSAGE input dialog with the given
message.
|
static String | showInputDialog(Component parentComponent, Object message, Object initialSelectionValue)- This method will show a QUESTION_MESSAGE type input dialog with the given
message and initialSelectionValue.
|
static String | showInputDialog(Component parentComponent, Object message, String title, int messageType)- This method displays a new input dialog with the given message, title and
messageType.
|
static Object | showInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSelectionValue)- This method shows an input dialog with the given message, title,
messageType, icon, selectionValues, and initialSelectionValue.
|
static String | showInputDialog(Object message)- This method shows a QUESTION_MESSAGE type input dialog.
|
static String | showInputDialog(Object message, Object initialSelectionValue)- This method shows a QUESTION_MESSAGE type input dialog.
|
static int | showInternalConfirmDialog(Component parentComponent, Object message)- This method shows an internal confirmation dialog with the given message.
|
static int | showInternalConfirmDialog(Component parentComponent, Object message, String title, int optionType)- This method shows an internal confirmation dialog with the given message,
optionType and title.
|
static int | showInternalConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType)- This method shows an internal confirmation dialog with the given message,
title, optionTypes and icon for the given message type.
|
static int | showInternalConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon)- This method shows an internal confirmation dialog with the given message,
title, option type, message type, and icon.
|
static String | showInternalInputDialog(Component parentComponent, Object message)- This method shows an internal input dialog with the given message.
|
static String | showInternalInputDialog(Component parentComponent, Object message, String title, int messageType)- This method shows an internal input dialog with the given message, title
and message type.
|
static Object | showInternalInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSelectionValue)- This method shows an internal input dialog with the given message, title
message type, icon, selection value list and initial selection value.
|
static void | showInternalMessageDialog(Component parentComponent, Object message)- This method shows an internal message dialog with the given message.
|
static void | showInternalMessageDialog(Component parentComponent, Object message, String title, int messageType)- This method shows an internal message dialog with the given message,
title and message type.
|
static void | showInternalMessageDialog(Component parentComponent, Object message, String title, int messageType, Icon icon)- This method shows an internal message dialog with the given message,
title, message type and icon.
|
static int | showInternalOptionDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue)- This method displays an internal option dialog with the given message,
title, option type, message type, icon, option list, and initial option
value.
|
static void | showMessageDialog(Component parentComponent, Object message)- This method shows an INFORMATION_MESSAGE type message dialog.
|
static void | showMessageDialog(Component parentComponent, Object message, String title, int messageType)- This method shows a message dialog with the given message, title and
messageType.
|
static void | showMessageDialog(Component parentComponent, Object message, String title, int messageType, Icon icon)- This method shows a message dialog with the given message, title,
messageType and icon.
|
static int | showOptionDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue)- This method shows an option dialog with the given message, title,
optionType, messageType, icon, options and initialValue.
|
void | updateUI()- This method resets the UI to the Look and Feel default.
|