Results 1 to 4 of 4
  1. #1
    wilnicm is offline Member
    Join Date
    May 2014
    Posts
    22
    Rep Power
    0

    Default Have anyone used Swingx Collapsible Pane- Ive got started but gotten stuck using it.

    everyone, Ok, so far i'm trying to use JXCollapsiblePane and i'm confused/ stuck on what to do next to make it all work .
    I've created a Gui that has 4 Swing tabbed Panes.
    On my First tab panned. I've added so far 3 collapsible pane that are a title border style.
    Now here is where i'm stuck. So far i cant add any controls visually
    to my collapsiblepanes. I was trying to drag and drop check box into the collapsiblepane
    but it wasn't liking that to much .

    So Can someone tell me in a step by step walk through on what im' doing wrong and how to approach it. YOu don't have to code it out for or you can just give me an example
    and even a conceptual view on how i can add my check box components on to my collapsible panes
    and how can i create a toggle to collapse and uncollapse my panes would be great since i don't have
    the slightes idea on how to get either one of those to work or how they work.

    for me an easier way of learning is giving me an overhead view on why i'm doing what i'm doing,
    since currently i'm probably missing a concept to make this collapsible pane and add the controls to it all work.

    Thanks for any feedback that can be given to help me.

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,224
    Rep Power
    20

    Default Re: Have anyone used Swingx Collapsible Pane- Ive got started but gotten stuck using

    Write the Swing code by hand and don't rely on the GUI builder in Netbeans, would be my suggestion.
    There's no guarantee that the GUI builder is capable of understanding that component.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  3. #3
    Joe1962 is offline Member
    Join Date
    Mar 2014
    Location
    Havana, Cuba
    Posts
    1
    Rep Power
    0

    Default Re: Have anyone used Swingx Collapsible Pane- Ive got started but gotten stuck using

    I use this in all my "configuration" windows. First add a JXTaskPaneContainer, then inside this add several JXTaskPanes, within these, a JPanel which will hold any controls you need, with whatever Layout you want.


    EDIT: The JXTaskPane expand/collapse functionality is automatic, just click the header.

    EDIT 2: Sorry about that, I mistook the component you were asking about. I will try and make time to have a look at the JXCollapsiblePane, which I have never used.
    Last edited by Joe1962; 05-07-2014 at 04:25 PM.

  4. #4
    wilnicm is offline Member
    Join Date
    May 2014
    Posts
    22
    Rep Power
    0

    Default Re: Have anyone used Swingx Collapsible Pane- Ive got started but gotten stuck using

    Thanks for the response guys
    I started coding part of the U.I that i couldn't drag and drop. I have not coded for the
    collapsible pane yet. I have created it, just not the functionality.
    What should happen is when user clicks on the title
    border then it should collapse and once clicked again expand.

    The great question would be how do you make that title bar an action listener
    when clicked to make it collapse and expand.

Similar Threads

  1. swingx JXTable columnControl
    By koneser69 in forum Advanced Java
    Replies: 1
    Last Post: 08-29-2013, 05:03 PM
  2. jsf collapsible panel and mapping
    By vauntcs in forum JavaServer Faces (JSF)
    Replies: 0
    Last Post: 05-23-2010, 09:21 PM
  3. Collapsible Vertical Menu
    By ccvid in forum Java Applets
    Replies: 4
    Last Post: 01-27-2009, 06:40 AM
  4. Components of SWingx.
    By SANDY_INDIA in forum Advanced Java
    Replies: 4
    Last Post: 07-14-2008, 10:46 AM
  5. about swingx?
    By tusharjas in forum AWT / Swing
    Replies: 2
    Last Post: 05-10-2007, 08:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •