Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #224
| From | "Oliver Wong" <oliver.wong@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: dynamic JTree from XM |
| Message-ID | <AxYah.40006$yQ2.1818613@weber.videotron.net> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <1164715903.818536.289950@l12g2000cwl.googlegroups.com> |
| Date | 2011-04-27 15:26 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui
"dhanya" <dhanya.aishwarya@gmail.com> wrote in message
news:1164715903.818536.289950@l12g2000cwl.googlegroups.com...
>
>
> Thanks Oliver. I have gone thru it. Now i can display my root and first
> level of parents. I have added a TreeExpansionListener to my tree. I
> dont know how to get the selected node inside the expanded event
> function. When i use event.getPath() its displaying the nodes value.
> For example if my xml is
> <parent id="1" value=:"red"/>
>
> i want to know its a parent. I am getting "red" as while creating the
> node i have named it using value. Pls help me i this.
Sorry, I don't understand your question. Can you give a (short) sample
XML input, a diagram of what your tree looks like now, and what you want it
to look like?
Here's a technique for drawing tree diagrams in plain text:
|- File
| |- New
| |- Send Message
| |- Save
| `- Close
|- Edit
| |- Copy
| |- Cut
| `- Paste
`- Help
|- Content
`- About
- Oliver
---
* 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
dynamic JTree from XML "dhanya" <dhanya@THRWHITE.remove-dii-this> - 2011-04-27 15:25 +0000
Re: dynamic JTree from XM "Oliver Wong" <oliver.wong@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
Re: dynamic JTree from XM "dhanya" <dhanya@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
Re: dynamic JTree from XM "Oliver Wong" <oliver.wong@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
Re: dynamic JTree from XM "dhanya" <dhanya@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
Re: dynamic JTree from XM "Oliver Wong" <oliver.wong@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
Re: dynamic JTree from XM "dhanya" <dhanya@THRWHITE.remove-dii-this> - 2011-04-27 15:26 +0000
csiph-web