File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes JTree nodes and AbstractActions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTree nodes and AbstractActions" Watch "JTree nodes and AbstractActions" New topic
Author

JTree nodes and AbstractActions

Pieter-Jan Malfait
Greenhorn

Joined: Aug 23, 2005
Posts: 26
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JTree nodes and AbstractActions