Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #855

Re: how to have empty nod

From "Michael Rauscher" <michael.rauscher@THRWHITE.remove-dii-this>
Subject Re: how to have empty nod
Message-ID <eps338$ts9$1@registered.motzarella.org> (permalink)
Newsgroups comp.lang.java.gui
References <45c18664$0$1414$4c368faf@roadrunner.com>
Date 2011-04-27 15:29 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
Brandon McCombs schrieb:
> It seems in Sun's infinite wisdom that a node in a JTree must have at 
> least 1 child in order for there to be an expansion control next to the 
> node. 

AFAIK it should be enough for TreeModel's isLeaf method to return false.

Bye
Michael

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

how to have empty nodes i "Brandon McCombs" <brandon.mccombs@THRWHITE.remove-dii-this> - 2011-04-27 15:29 +0000
  Re: how to have empty nod "Michael Rauscher" <michael.rauscher@THRWHITE.remove-dii-this> - 2011-04-27 15:29 +0000
    Re: how to have empty nod "Brandon McCombs" <brandon.mccombs@THRWHITE.remove-dii-this> - 2011-04-27 15:29 +0000
      Re: how to have empty nod "Edwin Dankert" <edwin.dankert@THRWHITE.remove-dii-this> - 2011-04-27 15:30 +0000
        Re: how to have empty nod "Brandon McCombs" <brandon.mccombs@THRWHITE.remove-dii-this> - 2011-04-27 15:30 +0000
    Re: how to have empty nod "Rogan Dawes" <rogan.dawes@THRWHITE.remove-dii-this> - 2011-04-27 15:30 +0000

csiph-web