Announcement Announcement Module
Collapse
No announcement yet.
Changing label of an ActionCommand Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Changing label of an ActionCommand

    Hi,

    I have a bunch of ActionCommands in a popup menu on a tree.

    It works like this:
    Code:
    this.commands.createTargetableActionCommand(COMMAND_ID, this.command);
    CommandGroup group = this.commands.createCommandGroup("treeCommandGroup", new Object[] { COMMAND_ID });
    getTree().addMouseListener(new PopupMenuMouseListener(group.createPopupMenu()));
    The label of the command is specified in messages.properties. The problem is that I need to change the label based on the node that has been selected. What would be the correct way to do this?
    Last edited by karanta; Mar 3rd, 2010, 05:21 AM.
Working...
X