-
Enhancement
-
Resolution: Not an Issue
-
P4
-
None
-
1.4.2
-
x86
-
windows_xp
Name: js151677 Date: 09/27/2004
A DESCRIPTION OF THE REQUEST :
When showInternalInputDialog() creates a JOptionPane object, it passes null for the two last parameters:
JOptionPane pane = new JOptionPane(message, messageType,
OK_CANCEL_OPTION, icon,
null, null);
So, we can not set button text for this type of JOptionPane.
It is better to add a new method as below:
public static Object showInternalInputDialog(Component parentComponent,
Object message, String title, int messageType, Icon icon, Object[] options, Object initialValue,
Object[] selectionValues, Object initialSelectionValue);
The new parameters are used as:
JOptionPane pane = new JOptionPane(message, messageType,
OK_CANCEL_OPTION, icon,
options, initialValue);
JUSTIFICATION :
Having this improvement we can customize text of internal input dialog buttons.
(Incident Review ID: 311825)
======================================================================