Package java.awt.event

Examples of java.awt.event.ActionEvent


    for (int i = 0; i < numEvents; i++)
    {
      ChunkVisInfo cVI = (ChunkVisInfo) events.get(i);
      cVI.selected = false;
    }
    ActionEvent a = new ActionEvent(this, 0, "numChunksSelectedChanged");
    drawingPanel.actionListener.actionPerformed(a);
  }
View Full Code Here


    private void enableControls() {
        moppyTypeRB.setEnabled(true);
        MIDITypeRB.setEnabled(true);
        if (moppyTypeRB.isSelected()){
            outputTypeChanged(new ActionEvent(moppyTypeRB, ActionEvent.ACTION_PERFORMED, moppyTypeRB.getActionCommand()));
        } else if (MIDITypeRB.isSelected()){
            outputTypeChanged(new ActionEvent(MIDITypeRB, ActionEvent.ACTION_PERFORMED, MIDITypeRB.getActionCommand()));
        }
       
    }
View Full Code Here

    private void loadPreferences(GCPreferences preferences) {
        if (preferences.isPropertiesLoaded()) {
            for (Entry<String, JCheckBoxMenuItem> menuEntry : gcLineMenuItems.entrySet()) {
                JCheckBoxMenuItem item = menuEntry.getValue();
                item.setState(preferences.getGcLineProperty(menuEntry.getKey()));
                viewMenuActionListener.actionPerformed(new ActionEvent(item, 0, item.getActionCommand()));
            }
            setBounds(preferences.getWindowX(),
                    preferences.getWindowY(),
                    preferences.getWindowWidth(),
                    preferences.getWindowHeight());
View Full Code Here

        //.setLayout(new GridLayout(1, 2, 10, 10));
        setOffsetCheckBox = new JCheckBox(LocalisationHelper.getString("timeoffset_prompt"), true);
        setOffsetCheckBox.addChangeListener(new ChangeListener() {
            public void stateChanged(ChangeEvent e) {
                timeSpinner.setEnabled(setOffsetCheckBox.isSelected());
                okAction.actionPerformed(new ActionEvent(this, 0, null));
            }
        });
        add(setOffsetCheckBox);
        add(timeSpinner);
View Full Code Here

    if (actionListeners != null) {
      Object[] listenerList = actionListeners.getListenerList();

      // Recreate the ActionEvent and stuff the value of the
      // ACTION_COMMAND_KEY
      ActionEvent e = new ActionEvent(evt.getSource(), evt.getID(),
          (String) getValue(Action.ACTION_COMMAND_KEY));
      for (int i = 0; i <= listenerList.length - 2; i += 2) {
        ((ActionListener) listenerList[i + 1]).actionPerformed(e);
      }
    }
View Full Code Here

                arriveeCadreSelection = null;
            }
            repaint();
        }
        if (actionListener != null)
            actionListener.actionPerformed(new ActionEvent(this,
                    ActionEvent.ACTION_PERFORMED, ""));

        /* Correction Bug Graphique */
        if (getPreferredSize().height > getSize().height
                || getPreferredSize().width > getSize().width
View Full Code Here

    isDragging = true;
  }
 
  protected void dispatchAction()
  {
    final ActionEvent e = new ActionEvent( this, ActionEvent.ACTION_PERFORMED, null );
 
    synchronized( collListeners ) {
      for( int i = 0; i < collListeners.size(); i++ ) {
        ((ActionListener) collListeners.get( i )).actionPerformed( e );
      }
View Full Code Here

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

        setCursor(new Cursor(Cursor.HAND_CURSOR));
      }
     
      @Override
      public void mouseClicked(MouseEvent e) {
        ImagePanel.this.listener.actionPerformed(new ActionEvent(ImagePanel.this, 0, "donate"));
      }
    });
  }
View Full Code Here

            if (e.getSource() == getEditor().getEditorComponent()) {
                final ComboBoxEditor editor = getEditor();
                final Object item = editor.getItem();

                if (!e.isTemporary() && item != null && !item.equals(getSelectedItem()))
                    actionPerformed(new ActionEvent(editor, 0, "", EventQueue.getMostRecentEventTime(), 0));
            }

            // the 2 lines of code below are copied from BasicComboBoxUI.Handler.focusLost
            // and represent the reason why we must tear out the FocusListener and replace
            // it with one of our own - it screws up the installation of this JComboBox as
View Full Code Here

TOP

Related Classes of java.awt.event.ActionEvent

Copyright © 2018 www.massapicom. 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.