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
     

    ——————————————————————————————————
    傲轩游戏网
  • 相关阅读:
    PHP学习九--会话控制session和cookie
    PHP学习八--正则表达式
    PHP学习六--类和对象
    PHP学习五--函数
    PHP学习四--数组
    《30天自制操作系统》day08——鼠标控制与32位模式切换
    java 中 静态块的作用
    学习(一)
    asp中 grideview 更新 无法获取值 解决办法
    ASP.NET中的GridView自带的编辑更新功能
  • 原文地址:https://www.cnblogs.com/cuizhf/p/2234611.html
Copyright © 2011-2022 走看看