Examples of actionPerformed()


Examples of java.awt.event.ActionListener.actionPerformed()

    // right click
    if (button == MouseEvent.BUTTON2 || button == MouseEvent.BUTTON3) {
      ActionListener actionListener = _pane.getRightClickActionListener(clickedTabIndex);
      if (actionListener != null) {
        actionListener.actionPerformed(new ActionEvent(e, clickedTabIndex, "right-click"));
      }
    }
  }

  @Override
View Full Code Here

Examples of java.awt.event.ActionListener.actionPerformed()

    valueDistributionCheckBox.addActionListener(actionListener);
    patternFinderCheckBox.addActionListener(actionListener);
    columnsTextField.getDocument().addDocumentListener(new DCDocumentListener() {
      @Override
      protected void onChange(DocumentEvent event) {
        actionListener.actionPerformed(null);
      }
    });

    final DCPanel quickAnalysisPanel = new DCPanel().setTitledBorder("Quick analysis");
    WidgetUtils.addToGridBag(DCLabel.dark("Max columns per analyzer:"), quickAnalysisPanel, 0, 0);
View Full Code Here

Examples of java.awt.event.ActionListener.actionPerformed()

    };
    proxyCheckBox.addActionListener(actionListener);
    proxyAuthCheckBox.addActionListener(actionListener);

    // use ActionListener to initialize components
    actionListener.actionPerformed(null);

    final DCPanel networkTabPanel = new DCPanel(WidgetUtils.BG_COLOR_BRIGHT, WidgetUtils.BG_COLOR_BRIGHTEST);
    networkTabPanel.setLayout(new BorderLayout());
    networkTabPanel.add(proxyCheckBox, BorderLayout.NORTH);
    networkTabPanel.add(proxyPanel, BorderLayout.CENTER);
View Full Code Here

Examples of java.awt.event.ActionListener.actionPerformed()

    topPanel.add(titleC, BorderLayout.WEST);

    JLabel icon = new JLabel(Activator.desktop.tipIcon);
    icon.addMouseListener(new MouseAdapter() {
  public void mouseClicked(MouseEvent ev) {
    nextAction.actionPerformed(null);
  }
      });
    icon.setToolTipText(nextButton.getText());

    add(icon,        BorderLayout.WEST);
View Full Code Here

Examples of java.awt.event.ActionListener.actionPerformed()

                        ActionEvent.ACTION_PERFORMED,
                        actionCommand,
                        event.getWhen(),
                        event.getModifiers());
            }
            listener.actionPerformed(e);
        }
    }
}
View Full Code Here

Examples of java.awt.event.ActionListener.actionPerformed()

  
     protected void dispatchAction()
   {
         final ActionListener listener = actionListener;
         if( listener != null ) {
             listener.actionPerformed( new ActionEvent( this, ActionEvent.ACTION_PERFORMED, null ));
         }
     }

   public Point2D[] getControlPoints()
   {
View Full Code Here

Examples of java.awt.event.ActionListener.actionPerformed()

    ActionListener a = new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        anonymousClassName = getClass().getName();
      }
    };
    a.actionPerformed(null);

    return anonymousClassName;
  }

  public class NamedInnerClass {
View Full Code Here

Examples of java.awt.event.ActionListener.actionPerformed()

    final ActionEvent event = new ActionEvent(this, -1, null);
    final ActionListener[] listeners = listenerList.getListeners(ActionListener.class);
    for (int i = 0; i < listeners.length; i++)
    {
      final ActionListener listener = listeners[i];
      listener.actionPerformed(event);
    }
  }

  public void addActionListener(final ActionListener listener)
  {
View Full Code Here

Examples of javax.swing.AbstractAction.actionPerformed()

        myProvider = provider;
    }

    public void actionPerformed(ActionEvent e) {
        AbstractAction activeAction = myProvider.getActiveAction();
        activeAction.actionPerformed(e);
    }

    public static interface ActiveActionProvider {
        public AbstractAction getActiveAction();
    }
View Full Code Here

Examples of javax.swing.AbstractAction.actionPerformed()

        public void hyperlinkUpdate(HyperlinkEvent e) {
          if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
            if (e.getDescription().equals("StartTutorial")) {
              startTutorial.actionPerformed(null);
            } else if (e.getDescription().equals("StopTutorial")) {
              stopTutorial.actionPerformed(null);
            } else {
              try {
                tutorialArea.setPage(e.getURL());
              } catch (IOException e1) {
                MessageCenter.getInstance().getLogger().error(
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.