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

JFileChooser incompatibility between 1.4 and 1.5

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 5.0
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b57
    • CPU:
      sparc
    • OS:
      solaris_8

      Description

      Running NetBeans installer on top of JDK 1.5 produces the next exception
      at javax.swing.plaf.basic.BasicFileChooserUI.getMnemonic(BasicFileChooserUI.java:603)
             at javax.swing.plaf.basic.BasicFileChooserUI.installStrings(BasicFileChooserUI.java:262)
             at javax.swing.plaf.metal.MetalFileChooserUI.installStrings(MetalFileChooserUI.java:447)
             at javax.swing.plaf.basic.BasicFileChooserUI.installDefaults(BasicFileChooserUI.java:220)
             at javax.swing.plaf.basic.BasicFileChooserUI.installUI(BasicFileChooserUI.java:135)
             at javax.swing.plaf.metal.MetalFileChooserUI.installUI(MetalFileChooserUI.java:123)
             at javax.swing.JComponent.setUI(JComponent.java:650)
             at javax.swing.JFileChooser.updateUI(JFileChooser.java:1755)
             at javax.swing.JFileChooser.setup(JFileChooser.java:366)
             at javax.swing.JFileChooser.<init>(JFileChooser.java:332)
             at javax.swing.JFileChooser.<init>(JFileChooser.java:285)

      This is due to incomatible change BasicFileChooserUI (UIManager.getInt
      to getMnemonic with consideration that the key value is String) for
      menomic intitialization fo the next keys: FileChooser.saveButtonMnemonic,
      FileChooser.openButtonMnemonic, FileChooser.cancelButtonMnemonic, FileChooser.updateButtonMnemonic, FileChooser.helpButtonMnemonic,
      and FileChooser.directoryOpenButtonMnemonic.

      The result is that some old code (like the one in InstallShield), which
      initiliaze the keys to int values, crash on JDK 1.5.

      Please make getMenonic the dual acceptance both String and Integer.
      ###@###.### 2004-06-08

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              leifs Leif Samuelsson (Inactive)
              Reporter:
              duke J. Duke (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: