Problems with the drag and drop facility while using the GUI interface
![qa-featured](https://www.techyv.com/sites/default/users/superadmin/qa-featured-300x270.png)
Hi,
I'm using the GUI interface for Netbeans 7.1, but I'm having problems with the drag and drop facility.
I have made two JPanels (ParentPanel & ChildPanel). I used a simple JLabel on each one to identify them, but when I try to drag and drop the childpanel into the ParentPanel, an error is shown, saying that it is unable to add.
I tried reverting back to an older version of Java and creating a new project. Then, I was able to drag the ChildPanel without any problems onto the ParentPanel.
Please see the screenshots.
Does Java 7 have known compatibility problems with GUI interfaces?
![](https://www.techyv.com/sites/default/files/users/bryan%20dowdy/5_0.png)
Â
![](https://www.techyv.com/sites/default/filesx/users/Images/Information-Cannot-load-component-class-test.jpeg)
Â
Information: Cannot load component class test.ChildPanel from project: D:projectsSwingBugExample.
The class must be compiled and must be on the classpath of the project to which this form belongs.
![](https://techyv.com/sites/default/2016/10/techpedia_logo.png)