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文件生成静态文件源码
    Entity Framework Code First 学习日记(6)一对多关系
    Entity Framework Code First 学习日记(5)
    Entity Framework Code First 学习日记(3)
    Entity Framework Code First 学习日记(7)多对多关系
    Entity Framework Code First学习日记(2)
    Entity Framework Code First 学习日记(8)一对一关系
    Entity Framework Code First 学习日记(9)映射继承关系
    Entity Framework Code First 学习日记(10)兼容遗留数据库
    Entity Framework Code First 学习日记(4)
  • 原文地址:https://www.cnblogs.com/cuizhf/p/2234611.html
Copyright © 2011-2022 走看看