Results 1 to 1 of 1

Thread: Changing label of an ActionCommand

  1. #1
    Join Date
    Dec 2008
    Posts
    1

    Default 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 at 04:21 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •