File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTree nodes and AbstractActions

 
Pieter-Jan Malfait
Greenhorn
Posts: 26
  • 0
  • 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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic