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.
This bug was originally marked as duplicate of bug 179016, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans Platform 7.0 (Build 201104080000) VM: Java HotSpot(TM) Client VM, 19.1-b02, Java(TM) SE Runtime Environment, 1.6.0_24-b07 OS: Windows 7 User Comments: rano_raharja: I want add an icon to windowTopComponent Stacktrace: java.lang.NullPointerException at javax.swing.JFileChooser.updateUI(JFileChooser.java:1765) at javax.swing.JFileChooser.setup(JFileChooser.java:360) at javax.swing.JFileChooser.<init>(JFileChooser.java:333) at javax.swing.JFileChooser.<init>(JFileChooser.java:286) at org.netbeans.modules.apisupport.project.ui.UIUtil$IconFileChooser.<init>(UIUtil.java:857) at org.netbeans.modules.apisupport.project.ui.UIUtil$IconFileChooser.<init>(UIUtil.java:855)
Created attachment 119655 [details] stacktrace
As in bug #179016, perhaps triggered by an earlier exception: java.lang.NullPointerException at org.netbeans.modules.form.VisualReplicator.updateContainerLayout(VisualReplicator.java:296) Probably a Swing bug in there too. Best to use the latest JDK update (and maybe update NetBeans to 7.1.2 as well).
Perhaps one of the problems with SwingX components as described in bug 127881. java.lang.NullPointerException at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:169) at org.jdesktop.swingx.plaf.LookAndFeelAddons.getUI(LookAndFeelAddons.java:303) at org.jdesktop.swingx.calendar.JXMonthView.updateUI(JXMonthView.java:305) at org.jdesktop.swingx.calendar.JXMonthView.<init>(JXMonthView.java:261) at org.jdesktop.swingx.calendar.JXMonthView.<init>(JXMonthView.java:247) at org.jdesktop.swingx.JXDatePicker.<init>(JXDatePicker.java:128) at org.jdesktop.swingx.JXDatePicker.<init>(JXDatePicker.java:112) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at org.netbeans.modules.form.CreationFactory.createDefaultInstance(CreationFactory.java:168) at org.netbeans.modules.form.RADComponent.createBeanInstance(RADComponent.java:252) [catch] at org.netbeans.modules.form.RADComponent.cloneBeanInstance(RADComponent.java:412) at org.netbeans.modules.form.VisualReplicator.cloneComponent(VisualReplicator.java:693) ...
*** This bug has been marked as a duplicate of bug 127881 ***