Skip to main content

Possible bug: JRE7u60 EA b13 (javax.swing.JFileChooser)

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
khikasa
Offline
Joined: 2014-04-08

I was testing out my applet on JRE 7u60 EA b13.
My applet works fine on JRE 7u51 and with no warnings/errors.

When I run applet on JRE 7u60 EA b13, it became no response at "new javax.swing.JFileChooser()".

applet :
==================================
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (ClassNotFoundException e) {
e.printStackTrace();
} catch (InstantiationException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
e.printStackTrace();
} catch (UnsupportedLookAndFeelException e) {
e.printStackTrace();
}
JFileChooser chooser = new JFileChooser(); // here
chooser.setDialogTitle("TEST");
chooser.setMultiSelectionEnabled(false);
chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);

environment :
==================================
OS:Windows7 SP1 (64bit)
JRE:7u60 EarlyAccess build13 (64bit/32bit)

Java stack information:
==================================
"main" prio=6 tid=0x0011c000 nid=0x1a38 runnable [0x0285f000]
java.lang.Thread.State: RUNNABLE
at sun.awt.windows.ThemeReader.setWindowTheme(Native Method)
at sun.awt.windows.ThemeReader.getThemeImpl(Unknown Source)
at sun.awt.windows.ThemeReader.getTheme(Unknown Source)
at sun.awt.windows.ThemeReader.getEnum(Unknown Source)
at com.sun.java.swing.plaf.windows.XPStyle.getTypeEnumName(Unknown Source)
at com.sun.java.swing.plaf.windows.XPStyle.getBorder(Unknown Source)
- locked <0x2a04fbf0> (a com.sun.java.swing.plaf.windows.XPStyle)
at com.sun.java.swing.plaf.windows.WindowsToolBarUI.getRolloverBorder(Unknown Source)
at javax.swing.plaf.basic.BasicToolBarUI.setBorderToRollover(Unknown Source)
at javax.swing.plaf.basic.BasicToolBarUI$Handler.componentAdded(Unknown Source)
at java.awt.Container.processContainerEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.Container.addImpl(Unknown Source)
- locked <0x2a056e20> (a java.awt.Component$AWTTreeLock)
at javax.swing.JToolBar.addImpl(Unknown Source)
at java.awt.Container.add(Unknown Source)
at sun.swing.WindowsPlacesBar.(Unknown Source)
at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.updateUseShellFolder(Unknown Source)
at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installComponents(Unknown Source)
at javax.swing.plaf.basic.BasicFileChooserUI.installUI(Unknown Source)
at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installUI(Unknown Source)
at javax.swing.JComponent.setUI(Unknown Source)
at javax.swing.JFileChooser.updateUI(Unknown Source)
at javax.swing.JFileChooser.setup(Unknown Source)
at javax.swing.JFileChooser.(Unknown Source)
at javax.swing.JFileChooser.(Unknown Source)
at test.JFileChooserTest.test(JFileChooserTest.java:35)
at test.JFileChooserTest.main(JFileChooserTest.java:24)

Is this a known issue in JRE 7u60 EA b13?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
alex.shields
Offline
Joined: 2014-04-23

My company has the same problem. We're using 7u60 (i'm not sure which build number) and Windows 7 x64.

The code we have that causes the problem is:

UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
JFileChooser fileChooser = new JFileChooser(); // this line causes Java to freeze