zoukankan      html  css  js  c++  java
  • 转:JXCollapsiblePane/JXTaskPane via NetBeans 6.9.1 designer

    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
     

    ——————————————————————————————————
    傲轩游戏网
  • 相关阅读:
    python中字典一键多相同值反转技巧
    win10下安装mysql
    上台阶问题的具体走法用python来实现
    桥接模式
    适配器模式
    多线程中lock的使用
    原型模式
    多线程
    建造者模式
    代理模式
  • 原文地址:https://www.cnblogs.com/cuizhf/p/2234611.html
Copyright © 2011-2022 走看看