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.
Product Version: NetBeans IDE 6.5 RC1 (Build 200810170201) Java: 1.6.0_10-rc2; Java HotSpot(TM) Client VM 11.0-b15 System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb) Description: ============ This happens on specific jPanel from netbeans which extends TopComponent (added as attachment) what to do: just select jlist and try to move it down in design area => jlist disappears from layout. I tried to add all project dependencies like openide.windows and so on, to simulate the real state in project and to remove all compile errors. I checked message log which reports problem in ProjectClassLoader in case that form is opened in ide. I guess this could be a core of this issue but I am not able to investigate more :-( Please look at it. StackTrace: =========== [WARNING] Opening form QueriesTopComponent as javax.swing.JPanel. Could not use the declared superclass: org.openide.windows.TopComponent java.lang.ClassNotFoundException: org.openide.windows.TopComponent at org.netbeans.modules.form.project.ProjectClassLoader.findClass(ProjectClassLoader.java:174) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at org.netbeans.modules.form.project.FormClassLoader.findClass(FormClassLoader.java:79) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at org.netbeans.modules.form.project.ClassPathUtils.loadClass(ClassPathUtils.java:95) at org.netbeans.modules.form.FormUtils.loadClass(FormUtils.java:1430)
Created attachment 72115 [details] 150536 message log
Created attachment 72118 [details] Form
seems that buttons are in different layer then jList which causes described behavior. steps how to reproduce: 1. have form class with e.g. jList component in it 2. copy buttons from different form and past them use ctrl+V into form class 3. select jList and try to move it => disappears. workaround: just select inserted buttons and change their position in a scope of the form => then components are in the same layer and this behavior should not occur.
Moving last (only one) component in the default layer probably causes the layer is removed. The reported exception is unrelated and harmless.
It actually works in current dev build. Moving the jList (the only component in the default layer) only hides the copied component in the other layer for the moment of dragging, the jList itself is moved properly.