This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Build: NetBeans IDE 7.1 (Build 201112071828) VM: Java HotSpot(TM) Client VM, 21.1-b02, Java(TM) SE Runtime Environment, 1.7.0_01-b08 OS: Windows XP User Comments: HiroKws: Try HTML outpout and spcified output file Stacktrace: java.lang.NullPointerException at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installComponents(WindowsFileChooserUI.java:306) at javax.swing.plaf.basic.BasicFileChooserUI.installUI(BasicFileChooserUI.java:173) at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installUI(WindowsFileChooserUI.java:150) at javax.swing.JComponent.setUI(JComponent.java:664) at javax.swing.JFileChooser.updateUI(JFileChooser.java:1803) at javax.swing.JFileChooser.setup(JFileChooser.java:370)
Created attachment 115119 [details] stacktrace
Maybe this came from a plugin 'ez-on-da-ice'. After uninstall this, file chooser worked correctly.
This is called by a bug in o.n.swing.dirchooser This module caches the first installed UI for JFileChooser, and doesn't respond to look and feel changes later. On Java 7 / Windows 7, the DelegatingChooserUI continues trying to use the WindowsFileChooserUI despite the look and feel being replaced. On Java 7 this causes a NPE, though not with Java 6. Workarounds are to set '--laf Metal' or '-J-Dstandard-file-chooser=true' in the .conf file. Noticed this in Praxis which uses NimROD look and feel, just like ez-on-da-ice.
Added link to original blog post...
can you describe steps to reproduce this?
If you know how to reproduce this in 7.2 or a current dev build preferably, please reopen with steps to reproduce
Ondro, see the page on published URL . Also want to say that there are similar issues like this: issue 213381 issue 215928
*** Bug 213381 has been marked as a duplicate of this bug. ***
*** Bug 215928 has been marked as a duplicate of this bug. ***
i'll try to fix it although i am unable to reproduce in 7.2 or in dev build
fix: http://hg.netbeans.org/core-main/rev/6cc12e03cddc
Integrated into 'main-golden', will be available in build *201210300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/6cc12e03cddc User: Ondrej Vrabec <ovrabec@netbeans.org> Log: #207569 - NullPointerException at com.sun.java.swing.plaf.windows.WindowsFileChooserUI.installComponents delegate to the proper (last set) file chooser ui