This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTree nodes and AbstractActions" Watch "JTree nodes and AbstractActions" New topic

JTree nodes and AbstractActions

Pieter-Jan Malfait

Joined: Aug 23, 2005
Posts: 26

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,
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: JTree nodes and AbstractActions
Similar Threads
Port number question
stateful session EJB 3 question
Having trouble doing the first example in SCWCD
Technical Writing ??
exception object and EL