Examples of addActionListener()


Examples of cero.games.Game.addActionListener()

  public boolean executer(String parametres) {
    Game game = CommandLineLauncher.getGame();
    if (game == null || parametres.trim() == "")
      return false;
    String[] split = parametres.split(":");
    game.addActionListener(this);

    Collection collection = null;
    if (split[0].equals("listz")) {
      if (split.length == 1)
        collection = game.getZones();
View Full Code Here

Examples of charvax.swing.JButton.addActionListener()

        JTextField textfield2 = new JTextField("Text Field 2");
        panel2.add(textfield2);
        textfield2.setLocation(11, 2);

        JButton okButton = new JButton("OK");
        okButton.addActionListener(this);
        contentPane.add(okButton);
        okButton.setLocation(25, 17);
        okButton.setMnemonic(0x18); // CTRL-X
    }
View Full Code Here

Examples of charvax.swing.JMenuItem.addActionListener()

        JMenuBar menubar = new JMenuBar();
        JMenu jMenuFile = new JMenu("File");
        jMenuFile.setMnemonic('F');

        JMenuItem jMenuItemFileChooser = new JMenuItem("JFileChooser", 'F');
        jMenuItemFileChooser.addActionListener(this);
        jMenuFile.add(jMenuItemFileChooser);

        JMenuItem jMenuItemCustomFileChooser = new JMenuItem(
                "custom FileChooser", 'c');
        jMenuItemCustomFileChooser.addActionListener(this);
View Full Code Here

Examples of client.gui.misc.ClientJButton.addActionListener()

         * lui ajouter un listener
         * l'ajouter sur la grille
         * l'ajouter dans la matrice de boutons, pour avoir les coordonnees.
         */
        ClientJButton unBouton = new ClientJButton(ImagesMap.get(ImagesMap.EMPTY));
        unBouton.addActionListener(this);
        unBouton.setBloque(false);
        this.add(unBouton);
        this.grille[i-1][j-1] = unBouton;
      }
    }
View Full Code Here

Examples of com.GestDB.swing.DatePickerObserver.addActionListener()

                    dpo.setValue(new Date(((java.sql.Date)valor).getTime()));
                else
                    dpo.setValue(new Date(((java.sql.Timestamp)valor).getTime()));
                dpo.setActionCommand(EDITDATE);
                dpo.setFont(dpo.getFont().deriveFont(Font.BOLD));
                dpo.addActionListener(this);
                return dpo;
            } catch (Exception ex) {
                JTextField jtf = new JTextField();
                jtf.setActionCommand(EDITSTRING);
                if(valor != null)
View Full Code Here

Examples of com.alee.extended.breadcrumb.WebBreadcrumbButton.addActionListener()

        // Root element
        final JarEntry root = jarStructure.getRoot ();
        final WebBreadcrumbButton rootElement = new WebBreadcrumbButton ();
        rootElement.setIcon ( root.getIcon () );
        TooltipManager.setTooltip ( rootElement, root.getIcon (), jarStructure.getJarLocation () );
        rootElement.addActionListener ( new ActionListener ()
        {
            @Override
            public void actionPerformed ( final ActionEvent e )
            {
                final WebPopupMenu rootMenu = new WebPopupMenu ();
View Full Code Here

Examples of com.alee.laf.button.WebButton.addActionListener()

        componentTransition.setPreferredSize ( SwingUtils.max ( image1, image2 ) );

        // Images switch button
        final WebButton switchView = new WebButton ( loadIcon ( "switch.png" ) );
        switchView.setDrawFocus ( false );
        switchView.addActionListener ( new ActionListener ()
        {
            @Override
            public void actionPerformed ( ActionEvent e )
            {
                if ( componentTransition.getContent () == image1 )
View Full Code Here

Examples of com.alee.laf.button.WebToggleButton.addActionListener()

                example.isPresentationAvailable () ? "Show presentation" : "There is no presentation available for this component",
                TooltipWay.up );

        if ( presentation.isEnabled () )
        {
            presentation.addActionListener ( new ActionListener ()
            {
                @Override
                public void actionPerformed ( final ActionEvent e )
                {
                    if ( presentation.isSelected () )
View Full Code Here

Examples of com.alee.laf.checkbox.WebCheckBox.addActionListener()

        final WebCheckBox webOnly = new WebCheckBox ();
        webOnly.setLanguage ( "weblaf.colorchooser.webonly" );
        webOnly.setSelected ( isWebOnlyColors () );
        webOnly.setMargin ( 0, 5, 0, 5 );
        webOnly.addActionListener ( new ActionListener ()
        {
            @Override
            public void actionPerformed ( final ActionEvent e )
            {
                setWebOnlyColors ( webOnly.isSelected () );
View Full Code Here

Examples of com.alee.laf.combobox.WebComboBox.addActionListener()

                                                            final boolean cellHasFocus )
            {
                return super.getListCellRendererComponent ( list, "Style: " + value, index, isSelected, cellHasFocus );
            }
        } );
        popupStyle.addActionListener ( new ActionListener ()
        {
            @Override
            public void actionPerformed ( final ActionEvent e )
            {
                popup.setPopupStyle ( ( PopupStyle ) popupStyle.getSelectedItem () );
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.