|
-
July 22nd, 1999, 11:59 PM
#1
JTree problem
sir!
I am trying to do developing JTree with the features when I pressed a node it should be expanded as well as it should be show the contents of that component in the viewport area.but I haven't get this please help me.
-
July 27th, 1999, 10:47 PM
#2
Re: JTree problem
I'm also doing R&D in this area. May be it will help u. What I am trying is...
Create a ExpansionAdapter and add it to the JTree using 'addExpansionListener'.
Now when I get 'TreeExpansionEvent', I am trying to identify the node which is expanded by the method 'TreeExpansionEvent.getPath().getLastParentComponent()'. And depending on the item expanded, I am intending to do my stuff for that item.
- UnicMan
http://members.tripod.com/unicman
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|