• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Customizing JTree leaf nodes

 
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

Could anyone provided me with examples or links/info on where I can find information on customizing JTree leaf nodes, such that some leaf nodes could have a combo box or a text field *next* to them.

Eg:
root
|
|--leaf (text field)
|
|--leaf (combo box)

Thanks,
Cathy.
[ May 19, 2004: Message edited by: Cathy Song ]
 
Ranch Hand
Posts: 820
IntelliJ IDE VI Editor Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is an article about that here:

http://www.phptr.com/articles/article.asp?p=26327&seqNum=21
 
Cathy Song
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the reply Tim. That approach allows me to make a leaf a combo box etc.

How can I add a label and a combo box next to it? Will I need to subclass the DefaultTreeCellEditor class?

|
|
|--label (combo box/text field)

Thanks,
Cathy.
[ May 19, 2004: Message edited by: Cathy Song ]
 
Cathy Song
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Should I just use a TreeTable kind of component to solve this problem?

-Cathy.
 
Are you here to take over the surface world? Because this tiny ad will stop you!
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic