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


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

Re: how to have empty nod

Path csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!nx02.iad01.newshosting.com!newshosting.com!novia!news-out.readnews.com!transit3.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail
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)
X-Comment-To comp.lang.java.gui
Newsgroups comp.lang.java.gui
In-Reply-To <45c18664$0$1414$4c368faf@roadrunner.com>
References <45c18664$0$1414$4c368faf@roadrunner.com>
Content-Type text/plain; charset=IBM437
Content-Transfer-Encoding 8bit
X-Gateway time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92]
Lines 15
Date Wed, 27 Apr 2011 15:29:58 GMT
NNTP-Posting-Host 96.60.20.240
X-Complaints-To news@tds.net
X-Trace newsreading01.news.tds.net 1303918198 96.60.20.240 (Wed, 27 Apr 2011 10:29:58 CDT)
NNTP-Posting-Date Wed, 27 Apr 2011 10:29:58 CDT
Organization TDS.net
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.gui:855

Show key headers only | 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