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.

Bug 150536 - Component disappears from form after movement
Summary: Component disappears from form after movement
Status: RESOLVED WORKSFORME
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-17 13:27 UTC by Jana Maleckova
Modified: 2011-02-01 14:15 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
150536 message log (26.61 KB, text/plain)
2008-10-17 13:29 UTC, Jana Maleckova
Details
Form (4.25 KB, application/x-compressed)
2008-10-17 13:37 UTC, Jana Maleckova
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jana Maleckova 2008-10-17 13:27:07 UTC
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)
Comment 1 Jana Maleckova 2008-10-17 13:29:29 UTC
Created attachment 72115 [details]
150536 message log
Comment 2 Jana Maleckova 2008-10-17 13:37:47 UTC
Created attachment 72118 [details]
Form
Comment 3 Jana Maleckova 2008-10-17 14:06:50 UTC
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. 

Comment 4 Tomas Pavek 2008-10-17 14:20:56 UTC
Moving last (only one) component in the default layer probably causes the layer is removed.

The reported exception is unrelated and harmless.
Comment 5 Tomas Pavek 2011-02-01 14:15:45 UTC
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.