Hide Leaf nodes in a jtree

Discussion in 'Java' started by Clive Moore, Oct 29, 2003.

  1. Clive Moore

    Clive Moore Guest

    is it possible ot hide the leaf nodes on a jtree. I want the nodes to
    be accessable by the program but not by the user.

    Thanks
    Clive


    --
    Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
     
    Clive Moore, Oct 29, 2003
    #1
    1. Advertising

  2. Clive Moore

    Harald Hein Guest

    "Clive Moore" wrote:

    > is it possible ot hide the leaf nodes on a jtree. I want the
    > nodes to be accessable by the program but not by the user.


    Wrap your TreeModel in another model. That that other model not give
    the leafes to the JTree
     
    Harald Hein, Oct 30, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alexandre Jaquet

    [JTree] Adding a leaf to a node

    Alexandre Jaquet, Nov 8, 2003, in forum: Java
    Replies:
    0
    Views:
    629
    Alexandre Jaquet
    Nov 8, 2003
  2. Alexandre Jaquet

    [JTree] click on a node or a leaf

    Alexandre Jaquet, Nov 10, 2003, in forum: Java
    Replies:
    2
    Views:
    4,714
    Matthew Zimmer
    Nov 11, 2003
  3. Tim Hoffman

    JTree leaf association to an object

    Tim Hoffman, Feb 11, 2004, in forum: Java
    Replies:
    3
    Views:
    799
    Tim Hoffman
    Feb 11, 2004
  4. Subhasish Saha
    Replies:
    0
    Views:
    367
    Subhasish Saha
    Aug 6, 2004
  5. dkacher
    Replies:
    3
    Views:
    672
    dkacher
    Dec 5, 2006
Loading...

Share This Page