Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #496
| From | "Brandon McCombs" <brandon.mccombs@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: how to fire JTree chi |
| Message-ID | <4591ef5b$0$8962$4c368faf@roadrunner.com> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <1167168310.511474.67590@42g2000cwt.googlegroups.com> |
| Date | 2011-04-27 15:27 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui William Z. wrote: > I have a JTree where each node displays a specific view when selected. > I'd like to somehow fire an event to default the app which view to > display when opened. > > How do I fire an event for a JTree as if the user clicked on a specific > child node? > You don't have to fire an event because the JTree will do that for you. All you have to do is setup a TreeExpansionListener and TreeSelectionListener. --- * 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 | Next — Previous in thread | Next in thread | Find similar
how to fire JTree child n "William Z." <william.z.@THRWHITE.remove-dii-this> - 2011-04-27 15:27 +0000
Re: how to fire JTree chi "Brandon McCombs" <brandon.mccombs@THRWHITE.remove-dii-this> - 2011-04-27 15:27 +0000
Re: how to fire JTree chi "William Z." <william.z.@THRWHITE.remove-dii-this> - 2011-04-27 15:27 +0000
Re: how to fire JTree chi "Ingo Buescher" <ingo.buescher@THRWHITE.remove-dii-this> - 2011-04-27 15:28 +0000
csiph-web