Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTree nodes and AbstractActions

 
Pieter-Jan Malfait
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,

anyone know how to get TreeNodes to react like JButtons or JMenuItems on an associated Action (taking te name, icon, shortcut, etc) ? I've traid subclassing it but TreeNode doesn't seem to have any of the normal swing component methods (setText, setEnabled, ...)

Anyone knows what i'm doing wrong? Any help will be greatly appreciated?

thx in advance,
PJ
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic