Exemplo n.º 1
0
 public void actionPerformed(ActionEvent e) {
   String command = e.getActionCommand();
   if (command == null) return;
   if (command.equals(moreLabel)) {
     Point bloc = moreButton.getLocation();
     pm.show(this, bloc.x, bloc.y);
   } else if (command.equals("Convert to RGB")) IJ.doCommand("Stack to RGB");
   else IJ.doCommand(command);
 }
Exemplo n.º 2
0
 void addPopupItem(String s) {
   MenuItem mi = new MenuItem(s);
   mi.addActionListener(this);
   pm.add(mi);
 }