Babylon 10
The world's best online dictionary

Download it's free

Definition of Joptionpane

Joptionpane Definition from Computer & Internet Dictionaries & Glossaries
JDK Doc(JAVA)
- class javax.swing..JOptionPane 
public class JOptionPane extends JComponent implements Accessible 
Tree:java.lang.Object - java.awt.Component - java.awt.Container - javax.swing.JComponent - javax.swing.JOptionPane
JOptionPane makes it easy to pop up a standard dialog box that prompts users for a value or informs them of something. While the class may appear complex because of the large number of methods, almost all uses of this class are one-line calls to one of the static showXxxDialog methods shown below:
- Constructor for class javax.swing.JOptionPane 
public JOptionPane ()
Creates a JOptionPane with a test message.
- Constructor for class javax.swing.JOptionPane 
public JOptionPane (Object  message)
Creates a instance of JOptionPane to display a message using the plain-message message type and the default options delivered by the UI.Parameters: message - the Object to display
- Constructor for class javax.swing.JOptionPane 
public JOptionPane (Object  message, int messageType)
Creates an instance of JOptionPane to display a message with the specified message type and the default options,Parameters: message - the Object to display - the type of message to be displayed: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE.messageType - the type of message to be displayed: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE.
- Constructor for class javax.swing.JOptionPane 
public JOptionPane (Object  message, int messageType, int optionType)
Creates an instance of JOptionPane to display a message with the specified message type and options.Parameters: message - the Object to display - the type of message to be displayed: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE.messageType - the type of message to be displayed: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE. - the options to display in the pane: DEFAULT_OPTION, YES_NO_OPTION, YES_NO_CANCEL_OPTION OK_CANCEL_OPTIONoptionType - the options to display in the pane: DEFAULT_OPTION, YES_NO_OPTION, YES_NO_CANCEL_OPTION OK_CANCEL_OPTION
- Constructor for class javax.swing.JOptionPane 
public JOptionPane (Object  message, int messageType, int optionType, Icon  icon)
Creates an instance of JOptionPane to display a message with the specified message type, options, and icon.Parameters: message - the Object to display - the type of message to be displayed: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE.messageType - the type of message to be displayed: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE. - the options to display in the pane: DEFAULT_OPTION, YES_NO_OPTION, YES_NO_CANCEL_OPTION OK_CANCEL_OPTIONoptionType - the options to display in the pane: DEFAULT_OPTION, YES_NO_OPTION, YES_NO_CANCEL_OPTION OK_CANCEL_OPTION - the Icon image to displayicon - the Icon image to display
- Constructor for class javax.swing.JOptionPane 
public JOptionPane (Object  message, int messageType, int optionType, Icon  icon, Object [] options)
Creates an instance of JOptionPane to display a message with the specified message type, icon, and options. None of the options is initially selected. The options objects should contain either instances of Components, (which are added directly) or Strings (which are wrapped in a JButton). If you provide Components, you must ensure that when the Component is clicked it messages setValue in the created JOptionPane.Parameters: message - the Object to display - the type of message to be displayed: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE.messageType - the type of message to be displayed: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE. - the options to display in the pane: DEFAULT_OPTION, YES_NO_OPTION, YES_NO_CANCEL_OPTION OK_CANCEL_OPTION. Only meaningful if the parameter is null.optionType - the options to display in the pane: DEFAULT_OPTION, YES_NO_OPTION, YES_NO_CANCEL_OPTION OK_CANCEL_OPTION. Only meaningful if the options parameter is null. - the Icon image to displayicon - the Icon image to display - the choices the user can selectoptions - the choices the user can select
- Constructor for class javax.swing.JOptionPane 
public JOptionPane (Object  message, int messageType, int optionType, Icon  icon, Object [] options, Object  initialValue)
Creates an instance of JOptionPane to display a message with the specified message type, icon, and options, with the inititially-selected option specified.Parameters: message - the Object to display - the type of message to be displayed: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE.messageType - the type of message to be displayed: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE. - the options to display in the pane: DEFAULT_OPTION, YES_NO_OPTION, YES_NO_CANCEL_OPTION OK_CANCEL_OPTION. Only meaningful if the parameter is null.optionType - the options to display in the pane: DEFAULT_OPTION, YES_NO_OPTION, YES_NO_CANCEL_OPTION OK_CANCEL_OPTION. Only meaningful if the options parameter is null. - the Icon image to displayicon - the Icon image to display - the choices the user can selectoptions - the choices the user can select - the choice that is initially selectedinitialValue - the choice that is initially selected