Package charva.awt.event

Examples of charva.awt.event.ActionEvent


      }

      /* Post an action event if ENTER was pressed.
       */
      else if (key == KeyEvent.VK_ENTER) {
    ActionEvent ae = new ActionEvent(this, _actionCommand);
    Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(ae);
      }
  }
  draw(Toolkit.getDefaultToolkit());
  super.requestSync();
View Full Code Here


  Object selectedItem = _popup.getSelectedItem();
  if (selectedItem != null)
      _model.setSelectedItem(selectedItem);

  evtqueue.postEvent(new ActionEvent(
      this, _model.getSelectedItem().toString()));
    }
View Full Code Here

      }
      else if (menu.getPopupMenu().wasCancelled() == false)
    hide();
  }
  else {
      ActionEvent evt = new ActionEvent(item_, item_.getActionCommand());
      Toolkit term = Toolkit.getDefaultToolkit();
      term.getSystemEventQueue().postEvent(evt);
      hide();
  }
    }
View Full Code Here

      if (( ! key_event.isConsumed()) &&
    key_event.getKeyCode() == KeyEvent.VK_ENTER &&
    super.isEnabled()) {
   
    EventQueue queue = Toolkit.getDefaultToolkit().getSystemEventQueue();
    queue.postEvent(new ActionEvent(this, getActionCommand()));
    key_event.consume();
      }
  }
  else if (evt_ instanceof ActionEvent)
      fireActionPerformed((ActionEvent) evt_);
View Full Code Here

TOP

Related Classes of charva.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.