List of usage examples for javax.swing JMenu setActionCommand
public void setActionCommand(String actionCommand)
From source file:TreeUtil.java
/** * Makes menus from the root node//from ww w. ja va 2 s . co m */ public JMenuItem getMenus() { JMenu rootMenu = new JMenu(itsRootNode.getUserObject().toString()); rootMenu.setActionCommand("TreeMenu"); rootMenu.addActionListener(this); return getMenus(itsRootNode, rootMenu); }