Hi,
I have a bunch of ActionCommands in a popup menu on a tree.
It works like this:
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?Code:this.commands.createTargetableActionCommand(COMMAND_ID, this.command); CommandGroup group = this.commands.createCommandGroup("treeCommandGroup", new Object[] { COMMAND_ID }); getTree().addMouseListener(new PopupMenuMouseListener(group.createPopupMenu()));


Reply With Quote