

Static int PLAIN_MESSAGE − No icon is used. Protected int optionType − Option type, one of DEFAULT_OPTION, YES_NO_OPTION, YES_NO_CANCEL_OPTION or OK_CANCEL_OPTION. Static string OPTIONS_PROPERTY − Bound property name for option. Protected Object options − Options to display to the user. Static string OPTION_TYPE_PROPERTY − Bound property name for optionType. Static int OK_OPTION − Return value from class method if OK is chosen. Static int NO_OPTION − Return value from class method if NO is chosen. Protected int messageType − Message type. Static int OK_CANCEL_OPTION − Type used for showConfirmDialog. Static string MESSAGE_TYPE_PROPERTY − Bound property name for type. Static string MESSAGE_PROPERTY − Bound property name for message. Protected Object message − Message to display. Protected Object inputValue − Value the user has input. Static string INPUT_VALUE_PROPERTY − Bound property name for inputValue. Protected Object initialValue − Value that should be initially selected in options. Protected Object initialSelectionValue − Initial value to select in selectionValues. Static string INITIAL_VALUE_PROPERTY − Bound property name for initialValue. Static string INITIAL_SELECTION_VALUE_PROPERTY − Bound property name for initialSelectionValue. Static int INFORMATION_MESSAGE − Used for information messages.

Static string ICON_PROPERTY − Bound property name for icon. Static int ERROR_MESSAGE − Used for error messages. Static int DEFAULT_OPTION − Type meaning Look and Feel should not supply any options only use the options from the JOptionPane. Static int CLOSED_OPTION − Return value from class method if the user closes window without selecting anything, more than likely this should be treated as either a CANCEL_OPTION or NO_OPTION. Static int CANCEL_OPTION − Return value from class method if CANCEL is chosen. Class Declarationįollowing is the declaration for class −įollowing are the fields for class − The class JOptionPane is a component which provides standard methods to pop up a standard dialog box for a value or informs the user of something.
