Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5107348

Improve JOptionPane.showInternalInputDialog()

    XMLWordPrintable

Details

    Description



      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)
      ======================================================================

      Attachments

        Activity

          People

            svioletsunw Scott Violet (Inactive)
            jssunw Jitender S (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: