Results 1 to 3 of 3
  1. #1
    Kendall is offline Member
    Join Date
    Mar 2010
    Posts
    4
    Rep Power
    0

    Default Showing/Hiding groups with "triangle flippities"

    At least, that's what David Pogue calls them, and I think it's safe to rely on him as a source of terminology.

    Basically what I want is what most programs, including Netbeans (screenshot) do. A bunch of stuff is hidden and shown by toggling a parent container.

    I would have expected there to be a JThing for this, but there does not appear to be.
    I've also looked at trees, but can't find a way of editing them to include components rather than text.

    Cheers,
    K
    Attached Thumbnails Attached Thumbnails Showing/Hiding groups with "triangle flippities"-flippities.jpg  

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,202
    Rep Power
    19

    Default

    Quote Originally Posted by Kendall View Post
    I've also looked at trees, but can't find a way of editing them to include components rather than text.
    My Component Tree Cell Renderer may give you some ideas, but do note that a renderer is not a "real" component, it's only a "rubber stamp" used for rendering (drawing). For your requirement, you may need to develop a companion Component tree cell editor if you're going to use JTree.

    Component Tree Cell Renderer Java Tips Weblog

    db

  3. #3
    Kendall is offline Member
    Join Date
    Mar 2010
    Posts
    4
    Rep Power
    0

    Default

    That's a pretty nice bit of code!

    I'm unsure whether a normal Editor will work due to the level of control I want to have over the layout. I'm starting to think that adding and removing panels with a toggle button, although tedious, would be a better solution than a tree.

    Perhaps I was not specific enough - I pretty much want exactly what Netbeans does, only the ability to specify the layout manually...

Similar Threads

  1. Replies: 1
    Last Post: 01-21-2010, 09:20 AM
  2. Replies: 2
    Last Post: 10-08-2009, 11:28 PM
  3. Error showing "Object Required"
    By kishan in forum Advanced Java
    Replies: 2
    Last Post: 09-26-2009, 02:23 PM
  4. Replies: 2
    Last Post: 01-24-2009, 06:56 PM
  5. Replies: 1
    Last Post: 10-20-2008, 07:35 AM

Posting Permissions

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