Examples of addActionListener()


Examples of com.alee.laf.menu.WebMenuItem.addActionListener()

            public void actionPerformed ( final ActionEvent e )
            {
                final WebPopupMenu rootMenu = new WebPopupMenu ();

                final WebMenuItem showInFS = new WebMenuItem ( "Show in folder", browseIcon );
                showInFS.addActionListener ( new ActionListener ()
                {
                    @Override
                    public void actionPerformed ( final ActionEvent e )
                    {
                        try
View Full Code Here

Examples of com.alee.laf.menu.WebRadioButtonMenuItem.addActionListener()

                final WebPopupMenu viewChoose = new WebPopupMenu ();

                final WebRadioButtonMenuItem icons = new WebRadioButtonMenuItem ( VIEW_ICONS_ICON );
                icons.setLanguage ( "weblaf.filechooser.view.icons" );
                icons.setSelected ( getViewType ().equals ( FileChooserViewType.icons ) );
                icons.addActionListener ( new ActionListener ()
                {
                    @Override
                    public void actionPerformed ( final ActionEvent e )
                    {
                        setViewType ( FileChooserViewType.icons );
View Full Code Here

Examples of com.alee.utils.swing.WebTimer.addActionListener()

     * @param delay    delay between checks for changes
     */
    public static WebTimer trackFile ( final File file, final SystemFileListener listener, final long delay )
    {
        final WebTimer tracker = new WebTimer ( "File tracker - " + file.getName (), delay, 0 );
        tracker.addActionListener ( new ActionListener ()
        {
            private Long lastModified = null;

            @Override
            public void actionPerformed ( final ActionEvent e )
View Full Code Here

Examples of com.ardor3d.extension.ui.UIButton.addActionListener()

        tfName.setLayoutData(GridLayoutData.WrapAndGrow);
        final UILabel lPassword = new UILabel("Password");
        final UIPasswordField tfPassword = new UIPasswordField();
        tfPassword.setLayoutData(GridLayoutData.WrapAndGrow);
        final UIButton btLogin = new UIButton("login");
        btLogin.addActionListener(new ActionListener() {
            public void actionPerformed(final ActionEvent event) {
                System.out.println("login as user: " + tfName.getText() + " password: " + tfPassword.getText());
            }
        });
        pLogin.add(lHeader);
View Full Code Here

Examples of com.ardor3d.extension.ui.UICheckBox.addActionListener()

            }
        });

        final UICheckBox twoDimCheck = new UICheckBox("Constrain Rocket to 2D Plane.");
        twoDimCheck.setSelected(stayIn2DPlane);
        twoDimCheck.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(final ActionEvent event) {
                stayIn2DPlane = twoDimCheck.isSelected();
            }
        });
View Full Code Here

Examples of com.ardor3d.extension.ui.UIRadioButton.addActionListener()

        final UIRadioButton balls16 = new UIRadioButton("16");
        balls16.setLayoutData(new AnchorLayoutData(Alignment.LEFT, ballsLabel, Alignment.RIGHT, 5, 0));
        balls16.setSelectable(true);
        balls16.setSelected(true);
        balls16.addActionListener(new ActionListener() {
            public void actionPerformed(final ActionEvent event) {
                resetBalls(16);
            }
        });
        balls16.setGroup(ballsGroup);
View Full Code Here

Examples of com.ardor3d.extension.ui.UISlider.addActionListener()

        slider.setSnapToValues(true);
        slider.setMinimumContentWidth(100);

        final UILabel lSliderValue = new UILabel("0");
        lSliderValue.setLayoutData(GridLayoutData.SpanAndWrap(2));
        slider.addActionListener(new ActionListener() {
            public void actionPerformed(final ActionEvent event) {
                lSliderValue.setText(String.valueOf(slider.getValue()));
            }
        });
        centerPanel.add(slider);
View Full Code Here

Examples of com.ardor3d.extension.ui.UITextField.addActionListener()

            public void actionPerformed(final ActionEvent event) {
                applyChat(historyArea, chatField);
            }
        };
        chatButton.addActionListener(actionListener);
        chatField.addActionListener(actionListener);

        bottomPanel.add(chatField);
        bottomPanel.add(chatButton);

        chatPanel.add(dirLabel);
View Full Code Here

Examples of com.arjuna.ats.tools.toolsframework.components.TextButton.addActionListener()

    gbc.insets.right = 10;
    gbc.insets.bottom = 10;
    gbl.setConstraints(viewButton, gbc);
    this.add(viewButton);

    viewButton.addActionListener(this);
  }

  public void updateDetails()
  {
    MBeanInfo mbeanInfo = getDetailsSupplier().getSelectedMBean();
View Full Code Here

Examples of com.barrybecker4.ui.components.GradientButton.addActionListener()

    private JButton addButton( String label, String tooltip, boolean enabled) {
        JButton b = new GradientButton();
        b.setText( label );
        b.setToolTipText( tooltip );
        b.setEnabled(enabled);
        b.addActionListener( this );
        add(b);
        return b;
    }

    /**
 
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.