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 130186, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE 6.8 RC1 (Build 200911252200) VM: Java HotSpot(TM) Client VM, 14.3-b01, Java(TM) SE Runtime Environment, 1.6.0_17-b04 OS: Windows 7, 6.1, x86 User Comments: theanuradha: try to enclose JPanel to JTabpane adamgmetzler@gmail.com: I was selecting different components in the Inspector window. GUEST: Just ajusting the form layout... ronnystandtke: wanted to set an icon to a previously copied label Stacktrace: java.lang.NullPointerException at org.netbeans.modules.form.layoutdesign.LayoutDesigner.isUnplacedComponent(LayoutDesigner.java:411) at org.netbeans.modules.form.FormDesigner.updateAssistantContext(FormDesigner.java:1112) at org.netbeans.modules.form.FormDesigner.selectionChanged(FormDesigner.java:1038) at org.netbeans.modules.form.FormDesigner.addComponentToSelectionImpl(FormDesigner.java:993) at org.netbeans.modules.form.ComponentInspector$NodeSelectionListener.propertyChange(ComponentInspector.java:521) at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
Created attachment 91944 [details] stacktrace
theanuradha, do you still have the form on which this exception can be reproduced? That would help a lot, thanks.
nope after restart problem not reproducible. BUT you can checkout http://code.google.com/p/cubeon/source/browse/trunk/core/common/src/main/java/org/netbeans/cubeon/common/ui/internals/TaskEditorUI.java and try to enclose "jPanel1" with tab and you can reproduce this issue
Created attachment 100920 [details] stacktrace
Created attachment 100921 [details] stacktrace
Created attachment 105106 [details] stacktrace Enclosed a JTextArea in a JPanel using the context meny, then marked the new panel in the inspector and this was thrown
Created attachment 105107 [details] stacktrace Well, has to try it again, just can't find the new panel in the form, it is either invisible or just not inserted...
Created attachment 105109 [details] stacktrace rightclicked the panel in the inspector to set a size on it, thrown when right-click
Reproducible on the TaskEditorUI form mentioned by anuradha: http://cubeon.googlecode.com/svn/trunk/core/common/src/main/java/org/netbeans/cubeon/common/ui/internals/TaskEditorUI.java http://cubeon.googlecode.com/svn/trunk/core/common/src/main/java/org/netbeans/cubeon/common/ui/internals/TaskEditorUI.form Enclose jPanel1 into Tabbed Pane, then try to select the tabbed pane.
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/75518cadd9ab User: Tomas Pavek <tpavek@netbeans.org> Log: #177930: enclose in container for components in alternate layer
Product Version: NetBeans IDE Dev (Build 201110030601) Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17 System: Linux version 2.6.38-11-generic running on i386; UTF-8; en_US (nb) If I follow anuradha steps to reproduce on their code no exception is thrown anymore. But this use case doesn't work correctly anyway. When JPanel1 is enclosed in Tabbed Pane, it is somehow doubled in navigator. More in attachment.
Created attachment 111459 [details] Navigator Doubled JPanel1 in navigator.
Created attachment 111648 [details] stacktrace Clicked on a swing component in navigator (I had previously switched from null layout yo free design, and got an exception)
asenk@netbeans.org: I don't see the duplication happen in current build, do you? I think we can close this as the original reproducible case was fixed, no new reports come in (except one for which we don't have steps to reproduce anyway).
I'm not able to reproduce the bug or the "duplication". I agree with closing this bug.