public class JOptionPane extends JComponent implements Accessible
| Modifier and Type | Class and Description |
|---|---|
protected class |
JOptionPane.AccessibleJOptionPane
Provides the accessibility features for the
JOptionPane
component. |
JComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
static int |
CANCEL_OPTION
The value returned when cancel option is selected.
|
static int |
CLOSED_OPTION
The value returned when the dialog is closed without a selection.
|
static int |
DEFAULT_OPTION
An option used in confirmation dialog methods.
|
static int |
ERROR_MESSAGE
Identifier for the error message type.
|
protected Icon |
icon
The icon displayed in the dialog/internal frame.
|
static String |
ICON_PROPERTY
The identifier for the propertyChangeEvent when the icon property
changes.
|
static int |
INFORMATION_MESSAGE
Identifier for the information message type.
|
static String |
INITIAL_SELECTION_VALUE_PROPERTY
The identifier for the propertyChangeEvent when the initialSelectionValue
property changes.
|
static String |
INITIAL_VALUE_PROPERTY
The identifier for the propertyChangeEvent when the initialValue property
changes.
|
protected Object |
initialSelectionValue
The initial selected value in the input component.
|
protected Object |
initialValue
The object that is initially selected for options.
|
static String |
INPUT_VALUE_PROPERTY
The identifier for the propertyChangeEvent when the inputValue property
changes.
|
protected Object |
inputValue
The value the user inputs.
|
protected Object |
message
The message displayed in the dialog/internal frame.
|
static String |
MESSAGE_PROPERTY
The identifier for the propertyChangeEvent when the message property
changes.
|
static String |
MESSAGE_TYPE_PROPERTY
The identifier for the propertyChangeEvent when the messageType property
changes.
|
protected int |
messageType
The type of message displayed.
|
static int |
NO_OPTION
The value returned when the no option is selected.
|
static int |
OK_CANCEL_OPTION
An option used in confirmation dialog methods.
|
static int |
OK_OPTION
The value returned when the ok option is selected.
|
static String |
OPTION_TYPE_PROPERTY
The identifier for the propertyChangeEvent when the optionType property
changes.
|
protected Object[] |
options
The options (usually buttons) aligned at the bottom for the user to
select.
|
static String |
OPTIONS_PROPERTY
The identifier for the propertyChangeEvent when the options property
changes.
|
protected int |
optionType
The type of options to display.
|
static int |
PLAIN_MESSAGE
Identifier for the plain message type.
|
static int |
QUESTION_MESSAGE
Identifier for the question message type.
|
static String |
SELECTION_VALUES_PROPERTY
The identifier for the propertyChangeEvent when the selectionValues
property changes.
|
protected Object[] |
selectionValues
The input values the user can select.
|
static Object |
UNINITIALIZED_VALUE
The value returned when the inputValue is uninitialized.
|
protected Object |
value
The value returned by selecting an option.
|
static String |
VALUE_PROPERTY
The identifier for the propertyChangeEvent when the value property
changes.
|
static String |
WANTS_INPUT_PROPERTY
The identifier for the propertyChangeEvent when the wantsInput property
changes.
|
protected boolean |
wantsInput
Whether the Dialog/InternalFrame needs input.
|
static int |
WARNING_MESSAGE
Identifier for the warning message type.
|
static int |
YES_NO_CANCEL_OPTION
An option used in confirmation dialog methods.
|
static int |
YES_NO_OPTION
An option used in confirmation dialog methods.
|
static int |
YES_OPTION
The value returned when the yes option is selected.
|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
JOptionPane()
Creates a new JOptionPane object using a message of "JOptionPane
message", using the PLAIN_MESSAGE type and DEFAULT_OPTION.
|
JOptionPane(Object message)
Creates a new JOptionPane object using the given message using the
PLAIN_MESSAGE type and DEFAULT_OPTION.
|
JOptionPane(Object message,
int messageType)
Creates a new JOptionPane object using the given message and messageType
and DEFAULT_OPTION.
|
JOptionPane(Object message,
int messageType,
int optionType)
Creates a new JOptionPane object using the given message, messageType and
optionType.
|
JOptionPane(Object message,
int messageType,
int optionType,
Icon icon)
Creates a new JOptionPane object using the given message, messageType,
optionType and icon.
|
JOptionPane(Object message,
int messageType,
int optionType,
Icon icon,
Object[] options)
Creates a new JOptionPane object using the given message, messageType,
optionType, icon and options.
|
JOptionPane(Object message,
int messageType,
int optionType,
Icon icon,
Object[] options,
Object initialValue)
Creates a new JOptionPane object using the given message, messageType,
optionType, icon, options and initialValue.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
Object[] |
getOptions()
This method returns the options.
|
int |
getOptionType()
This method returns the option type.
|
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 |
setOptions(Object[] newOptions)
This method changes the options property.
|
void |
setOptionType(int newType)
This method changes the optionType 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.
|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setNextFocusableComponent, setOpaque, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic static final int CANCEL_OPTION
public static final int CLOSED_OPTION
public static final int DEFAULT_OPTION
public static final int NO_OPTION
public static final int OK_CANCEL_OPTION
public static final int OK_OPTION
public static final int YES_NO_CANCEL_OPTION
public static final int YES_NO_OPTION
public static final int YES_OPTION
public static final int ERROR_MESSAGE
public static final int INFORMATION_MESSAGE
public static final int PLAIN_MESSAGE
public static final int QUESTION_MESSAGE
public static final int WARNING_MESSAGE
public static final String ICON_PROPERTY
public static final String INITIAL_SELECTION_VALUE_PROPERTY
public static final String INITIAL_VALUE_PROPERTY
public static final String INPUT_VALUE_PROPERTY
public static final String MESSAGE_PROPERTY
public static final String MESSAGE_TYPE_PROPERTY
public static final String OPTION_TYPE_PROPERTY
public static final String OPTIONS_PROPERTY
public static final String SELECTION_VALUES_PROPERTY
public static final String VALUE_PROPERTY
public static final String WANTS_INPUT_PROPERTY
public static final Object UNINITIALIZED_VALUE
protected Object initialSelectionValue
protected Object initialValue
protected Object inputValue
protected int messageType
protected Object[] options
protected int optionType
protected Object[] selectionValues
protected boolean wantsInput
public JOptionPane()
public JOptionPane(Object message)
message - The message to display.public JOptionPane(Object message, int messageType)
message - The message to display.messageType - The type of message.public JOptionPane(Object message, int messageType, int optionType)
message - The message to display.messageType - The type of message.optionType - The type of options.public JOptionPane(Object message, int messageType, int optionType, Icon icon)
message - The message to display.messageType - The type of message.optionType - The type of options.icon - The icon to display.public JOptionPane(Object message, int messageType, int optionType, Icon icon, Object[] options)
message - The message to display.messageType - The type of message.optionType - The type of options.icon - The icon to display.options - The options given.public JOptionPane(Object message, int messageType, int optionType, Icon icon, Object[] options, Object initialValue)
message - The message to display.messageType - The type of message.optionType - The type of options.icon - The icon to display.options - The options given.initialValue - The component to focus on initially.IllegalArgumentException - If the messageType or optionType are not
legal values.public JDialog createDialog(Component parentComponent, String title)
parentComponent - The parent of the Dialog.title - The title in the bar of the JDialog.public JInternalFrame createInternalFrame(Component parentComponent, String title) throws RuntimeException
parentComponent - The parent to find a JDesktopPane from.title - The title of the JInternalFrame.RuntimeException - If no suitable JDesktopPane is found.public AccessibleContext getAccessibleContext()
JOptionPane component.getAccessibleContext in interface AccessiblegetAccessibleContext in class JComponentJOptionPane.AccessibleJOptionPane).public static JDesktopPane getDesktopPaneForComponent(Component parentComponent)
parentComponent - The component to look in.public static Frame getFrameForComponent(Component parentComponent)
parentComponent - The component to look in.public Object getInitialSelectionValue()
public Object getInitialValue()
public Object getInputValue()
public int getMaxCharactersPerLineCount()
public Object getMessage()
public int getMessageType()
public Object[] getOptions()
public int getOptionType()
public static Frame getRootFrame()
public Object[] getSelectionValues()
public OptionPaneUI getUI()
public String getUIClassID()
getUIClassID in class JComponentJComponent.setUI(javax.swing.plaf.ComponentUI),
JComponent.updateUI()public Object getValue()
public boolean getWantsInput()
protected String paramString()
paramString in class JComponentpublic void selectInitialValue()
public void setIcon(Icon newIcon)
newIcon - The new icon to use.public void setInitialSelectionValue(Object newValue)
newValue - The new initial selection.public void setInitialValue(Object newValue)
newValue - The new initial value.public void setInputValue(Object newValue)
newValue - The new inputValue.public void setMessage(Object newMessage)
newMessage - The new message.public void setMessageType(int newType)
newType - The new messageType.IllegalArgumentException - If the messageType is not valid.public void setOptions(Object[] newOptions)
newOptions - The new options.public void setOptionType(int newType)
newType - The new optionType.IllegalArgumentException - If the optionType is not valid.public static void setRootFrame(Frame newRootFrame)
newRootFrame - The Frame to use for dialogs that have no parent.public void setSelectionValues(Object[] newValues)
newValues - The new selectionValues.public void setUI(OptionPaneUI ui)
ui - The UI used with the JOptionPane.public void setValue(Object newValue)
newValue - The value that has been selected out of options.public void setWantsInput(boolean newValue)
newValue - Whether this JOptionPane requires input.public static int showConfirmDialog(Component parentComponent, Object message)
parentComponent - The parentComponent to find a frame in.message - The message to display.public static int showConfirmDialog(Component parentComponent, Object message, String title, int optionType)
parentComponent - The component to find a frame in.message - The message displayed.title - The title of the dialog.optionType - The optionType.public static int showConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType)
parentComponent - The component to find a frame in.message - The message displayed.title - The title of the dialog.optionType - The optionType.messageType - The messageType.public static int showConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon)
parentComponent - The component to find a frame in.message - The message displayed.title - The title of the dialog.optionType - The optionType.messageType - The messsageType.icon - The icon displayed.public static String showInputDialog(Component parentComponent, Object message)
parentComponent - The component to find a frame in.message - The message displayed.public static String showInputDialog(Component parentComponent, Object message, Object initialSelectionValue)
parentComponent - The component to find a frame in.message - The message to display.initialSelectionValue - The initially selected value.public static String showInputDialog(Component parentComponent, Object message, String title, int messageType)
parentComponent - The component to find a frame in.message - The message to display.title - The title of the dialog.messageType - The messageType.public static Object showInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSelectionValue)
parentComponent - The component to find a frame in.message - The message displayed.title - The title of the dialog.messageType - The messageType.icon - The icon displayed.selectionValues - The list of values to select from.initialSelectionValue - The initially selected value.public static String showInputDialog(Object message)
message - The message to display.public static String showInputDialog(Object message, Object initialSelectionValue)
message - The message to display.initialSelectionValue - The initialSelectionValue.public static int showInternalConfirmDialog(Component parentComponent, Object message)
parentComponent - The parent to find a JDesktopPane in.message - The message to display.public static int showInternalConfirmDialog(Component parentComponent, Object message, String title, int optionType)
parentComponent - The parent to find a JDesktopPane in.message - The message to display.title - The title to display.optionType - The option type.public static int showInternalConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType)
parentComponent - The component to find a JDesktopPane in.message - The message to display.title - The title of the dialog.optionType - The option type.messageType - The message type.public static int showInternalConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon)
parentComponent - The parent to find a JDesktopPane in.message - The message to display.title - The title to display.optionType - The option type.messageType - The message type.icon - The icon to display.public static String showInternalInputDialog(Component parentComponent, Object message)
parentComponent - The parent to find a JDesktopPane in.message - The message to display.public static String showInternalInputDialog(Component parentComponent, Object message, String title, int messageType)
parentComponent - The component to find a JDesktopPane in.message - The message to display.title - The title to display.messageType - The message type.public static Object showInternalInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object[] selectionValues, Object initialSelectionValue)
parentComponent - The parent to find a JDesktopPane in.message - The message to display.title - The title to display.messageType - The message type.icon - The icon to display.selectionValues - The selection value list.initialSelectionValue - The initial selection value.public static void showInternalMessageDialog(Component parentComponent, Object message)
parentComponent - The component to find a JDesktopPane in.message - The message to display.public static void showInternalMessageDialog(Component parentComponent, Object message, String title, int messageType)
parentComponent - The parent component to find a JDesktopPane in.message - The message to display.title - The title to display.messageType - The message type.public static void showInternalMessageDialog(Component parentComponent, Object message, String title, int messageType, Icon icon)
parentComponent - The component to find a JDesktopPane in.message - The message to display.title - The title to display.messageType - The message type.icon - The icon to display.public static int showInternalOptionDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue)
parentComponent - The parent to find a JDesktopPane in.message - The message displayed.title - The title displayed.optionType - The option type.messageType - The message type.icon - The icon to display.options - The array of options.initialValue - The initial value selected.public static void showMessageDialog(Component parentComponent, Object message)
parentComponent - The component to find a frame in.message - The message displayed.public static void showMessageDialog(Component parentComponent, Object message, String title, int messageType)
parentComponent - The component to find a frame in.message - The message displayed.title - The title of the dialog.messageType - The messageType.public static void showMessageDialog(Component parentComponent, Object message, String title, int messageType, Icon icon)
parentComponent - The component to find a frame in.message - The message displayed.title - The title of the dialog.messageType - The messageType.icon - The icon displayed.public static int showOptionDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue)
parentComponent - The component to find a frame in.message - The message displayed.title - The title of the dialog.optionType - The optionType.messageType - The messageType.icon - The icon displayed.options - The options to choose from.initialValue - The initial value.public void updateUI()
updateUI in class JComponent