Skip to main content

JXCollapsiblePane/JXTaskPane via NetBeans 6.9.1 designer

7 replies [Last post]
akis2
Offline
Joined: 2010-06-18

Hi,
I am new in SwingX and I have trouble using JXCollapsiblePane and JXTaskPane using Pallete manager of Netbeans 6.9.1
Specifically:
For JXTaskPane:
1)I drag a JXTaskPaneContainer from pallete manager in a JForm
2)I drag a JXTaskPane from pallete manager into JXTaskPaneContainer
3)I try to add a jpanel or a jbutton in the JXTaskPane but I get the message "Cannot enclose components in a non-empty container"
If I add the components programmatically (as in example code I found i don't get an error and seems to work)

For JXCollapsiblePane:
1)I drag a JXCollapsiblePane from pallete manager in a JForm
2)I try to add a jpanel or a jbutton in the JXCollapsiblePane but I get the message "Cannot enclose components in a non-empty container"
If I add the components programmatically (as in example code I found i don't get an error and seems to work)

Can someone please explain what am I doing wrong?Is it not possible to do this using the Netbeans pallete designer?
I want to design my form visually. Is it possible for the components I am trying to use?

Thank you.

Message was edited by: akis2

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
akis2
Offline
Joined: 2010-06-18

Karl Thanks a lot!!! This solved it! Why do I need this jar?

kschaefe
Offline
Joined: 2006-06-08

It is needed by the GUI designer to know how to interact with the beans. JXTaskPane is a container, but has a container delegate. Without adding the beaninfo to the palette, the designer does not know how to add children to it.

Karl

kschaefe
Offline
Joined: 2006-06-08

Did you install the bean info jar?

Karl

akis2
Offline
Joined: 2010-06-18

No! I only added [b]swingx-core-1.6.2.jar[/b] in my NetBeans project.
Is this the problem? The missing jar? Is it part of the dowload page?

kleopatra
Offline
Joined: 2003-06-11

no intention to point fingers - but from experience, Netbeans/palette related questions stand a better chance to be answered in a Netbeans forum. AFAICT, here aren't so many devs using Netbeans.

Would be great if you could report any answer here if you solved it :-) Or better even: update the wiki with the problem and solution.

Thanks
Jeanette

akis2
Offline
Joined: 2010-06-18

Ok, will do that. But you are saying it should work right? I am not doing something that is against a concept, right?

kleopatra
Offline
Joined: 2003-06-11

Personally, I have no idea whatever when it comes to Netbeans, sorry :-(

Thanks
Jeanette