http://forums.netbeans.org/ntopic32575.html

————————————————————————————————————————————————————————————————

Author Message
jim_akmer



Joined: 20 Oct 2010
Posts: 2

PostPosted: Wed Oct 20, 2010 12:15 pm    Post subject: JXCollapsiblePane/JXTaskPane via NetBeans 6.9.1 designer

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?
Note:I was adviced to ask a Netbean forum from the SwingX forum.
http://forums.java.net/jive/thread.jspa?messageID=485716񶥔

Thank you.
[/url]
Back to top
View user's profile Send private message  
John Lussmyer
Posted via mailing list.





PostPosted: Wed Oct 20, 2010 9:27 pm    Post subject: JXCollapsiblePane/JXTaskPane via NetBeans 6.9.1 designer

Quote:
-----Original Message-----
From: jim_akmer [mailto:address-removed]

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)

You aren't doing anything wrong.
NetBeans GUI editor just doesn't work with those controls.
It's a royal PITA since the SwingX have some nice features.
Back to top

 
jim_akmer



Joined: 20 Oct 2010
Posts: 2

PostPosted: Thu Oct 21, 2010 8:15 am    Post subject:

The swingx-beaninfo.jar was missing from my project. Works now
 

posted on 2011-11-03 15:37  网络大豆  阅读(523)  评论(0编辑  收藏  举报