Examples of addActionListener()


Examples of lcmc.common.ui.utils.MyButton.addActionListener()

                }

            };
        // TODO: disable buttons if disconnected?
        final MyButton procDrbdButton = widgetFactory.createButton("Show Proxy Info");
        procDrbdButton.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(final ActionEvent e) {
                host.execCommand(new ExecCommandConfig().commandString("DRBD.showProxyInfo")
                                                        .execCallback(execCallback));
            }
View Full Code Here

Examples of lupos.gui.operatorgraph.visualeditor.visualrif.util.JIconButton.addActionListener()

    final JIconButton upButton = new JIconButton("icons/001_24.png");
    upButton.setPreferredSize(buttonDimension);
    upButton.setMaximumSize(buttonDimension);
    upButton.setMinimumSize(buttonDimension);

    upButton.addActionListener(new ActionListener(){
       @Override
      public void actionPerformed(final ActionEvent e) {

          UnitermOperatorPanel.this.unitermOperator.swapTerms(term,true);
          UnitermOperatorPanel.this.repaintAllTerms();
View Full Code Here

Examples of mdes.slick.sui.Button.addActionListener()

      final int j = i;
      // Starts the item buttons
      Button item = new Button();
      item.setSize(60, 60);
      item.setLocation(50 + (80 * i), 85);
      item.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
          destroyPopup();
          useItem(j);
        }
      });
View Full Code Here

Examples of megamek.client.ui.AWT.widget.ImageButton.addActionListener()

            curButton.setActionCommand("camo"); //$NON-NLS-1$

            // When a camo button is pressed, remove any previous
            // listener from the dialog, update the dialog for the
            // button's player, and add a new listener.
            curButton.addActionListener(new ActionListener() {
                private final CamoChoiceDialog dialog = camoDialog;
                private final ImageButton button = curButton;
                private final Color background = defaultBackground;
                private final Player player = curPlayer;
View Full Code Here

Examples of messages.PlaneUpdateObject.addActionListener()

                this.add(tmp);
                for (int i = 0; i < functions.length; i++) {
                    if (!functions[i].equals("Pilot") && !functions[i].equals("-no function-")) {
                        final int k = i;
                        tmp = new JMenuItem(functions[i]);
                        tmp.addActionListener(new ActionListener() {

                            public void actionPerformed(ActionEvent e) {
                                String oC = selectedPlane.getActiveController();
                                String nC = functions[k];
                                selectedPlane.setActiveController(nC);
View Full Code Here

Examples of model.Button.addActionListener()

    Button  option = new Button(60, 60, 470, 500);
    option.setIcon(new ImageIcon("img/optionB.png"));
    Button  pause = new Button(60, 60, 405, 500);
    pause.setIcon(new ImageIcon("img/pauseB.png"));
       
      pause.addActionListener(new pauseButtonListener());
      option.addActionListener(new optionButtonListener());
   
      /*EVENT CLAVIER*/
      p.setFocusable(true);
      p.requestFocus();
View Full Code Here

Examples of net.datacrow.console.components.DcButton.addActionListener()

        DcButton buttonClose = ComponentFactory.getButton(DcResources.getText("lblClose"));
       
        buttonNext.addActionListener(this);
        buttonNext.setActionCommand("next");
       
        buttonClose.addActionListener(this);
        buttonClose.setActionCommand("close");
       
        checkShowTips.addActionListener(this);
        checkShowTips.setActionCommand("toggleActive");
        checkShowTips.setSelected(DcSettings.getBoolean(DcRepository.Settings.stShowTipsOnStartup));
View Full Code Here

Examples of net.datacrow.console.components.DcMenuItem.addActionListener()

        DcMenuItem menuFileTypes = ComponentFactory.getMenuItem(DcResources.getText("lblFileTypes"));
        menuFilter.add(menuFileTypes);
       
        menu.add(menuFilter);
       
        menuFileTypes.addActionListener(this);
        menuFileTypes.setActionCommand("filterFileTypes");
       
        return menu;
    }
View Full Code Here

Examples of net.datacrow.console.components.DcPluginField.addActionListener()

       
        for (Plugin plugin : plugins) {
            if (SecurityCentre.getInstance().getUser().isAuthorized(plugin)) {
                DcPluginField fld = new DcPluginField(plugin);
               
                fld.addActionListener(this);
                add(fld, Layout.getGBC( x, y++, 1, 1, 1.0, 1.0
                   ,GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH,
                    new Insets( 0, 5, 5, 5), 0, 0));
            }
        }
View Full Code Here

Examples of net.helipilot50.stocktrade.displayproject.controls.MenuList.addActionListener()

//                for (ActionListener listener : item.getActionListeners()){
//                    item.removeActionListener(listener);
//                }
//            }
            item.removeActionListener(this);
            item.addActionListener(this);
        }
    }

    public void actionPerformed(ActionEvent e) {
        List<EventHandle> eventsToPost = new ArrayList<EventHandle>();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.