Skip to main content

Action names not showing up in JXTaskPane

1 reply [Last post]
svetzal
Offline
Joined: 2005-06-10
Points: 0

Hi All,

I began toying around with some of the SwingX project this week, kudos to all involved - this is just what the JavaDesktop community needs.

One thing I've been trying to do is get a sample app up using JXTaskPane components.

Here's a code snippet:

JXTaskPaneContainer cont = new JXTaskPaneContainer();
JXTaskPane tp = new JXTaskPane();
tp.setTitle("Tasks");
Action a = new ReflectedAction("Test", this, "doSomething");
tp.add(a);
cont.add(tp);
panel.add(cont, BorderLayout.WEST);

ReflectedActionis an extension to javax.swing.Action that simply calls a method on the provided object.

My problem is that the action does not show its label in the JXTaskPane.

Any ideas?

Steve

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
svetzal
Offline
Joined: 2005-06-10
Points: 0

Never mind :) it's working.

The action framework I'm using was not localizing the Action, and it had no NAME property assigned.

You must be sure that any Action objects you add to it have a NAME property - which is just a good idea anyways.