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

Please add title UIResource to OptionPane

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.2.0
    • client-libs
    • beta2
    • generic
    • generic



      Name: diC59631 Date: 01/04/99


      While a long term goal is to localize JOptionPane...

      please make the title settable by something like the following:

      UIDefaults defaults = UIManager.getDefaults();
      defaults.put("OptionPane.title", "Choisisez une option");

      Currently, while I can set all the buttons for an option pane like:
      UIDefaults defaults = UIManager.getDefaults();
      defaults.put("OptionPane.cancelButtonText", "Annuler");
      defaults.put("OptionPane.noButtonText", "Non");
      defaults.put("OptionPane.okButtonText", "D'accord");
      defaults.put("OptionPane.yesButtonText", "Oui");

      I have to manually set the title to something other than English for each option pane created.

      With all five as UIDefaults, I can create a method to call for every language I plan on supporting...


      I don't think these constitute API changes... ;-) so should be able to slip this in with a bug fix release... vs. next full revision... :-)
      (Review ID: 48940)
      ======================================================================

            amfowler Anne Fowler (Inactive)
            dindrigo Daniel Indrigo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: