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

JFileChooser incompatibility between 1.4 and 1.5

XMLWordPrintable

    • b57
    • sparc
    • solaris_8

      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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: