Examples of KeyListener


Examples of java.awt.event.KeyListener

        stepsPanel.add(stepsComboBox);

        JPanel searchPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT, 10, 0));
        searchField = new JTextField();
        searchField.setPreferredSize(new Dimension(150, 25));
        searchField.addKeyListener(new KeyListener() {

            public void keyPressed(KeyEvent e) {
                if (e.getKeyCode() == KeyEvent.VK_ENTER) {
                    search(searchField.getText());
                }
View Full Code Here

Examples of java.awt.event.KeyListener

    okButton = new JButton("Ok");
    cancelButton = new JButton("Cancel");

    super.dialogInit();

    KeyListener keyListener = (new KeyAdapter() {
      public void keyPressed(KeyEvent e){
        if (e.getKeyCode() == KeyEvent.VK_ESCAPE ||
            (e.getSource() == cancelButton
            && e.getKeyCode() == KeyEvent.VK_ENTER)){
          isOkPressed = false;
View Full Code Here

Examples of java.awt.event.KeyListener

    okButton = new JButton("Ok");
    cancelButton = new JButton("Cancel");

    super.dialogInit();

    KeyListener keyListener = (new KeyAdapter() {
      public void keyPressed(KeyEvent e){
        if (e.getKeyCode() == KeyEvent.VK_ESCAPE ||
            (e.getSource() == cancelButton
            && e.getKeyCode() == KeyEvent.VK_ENTER)){
          pressed_OK = false;
View Full Code Here

Examples of java.awt.event.KeyListener

    GVarsTree.expandRow(1)// expand the tree in order the user to see it
    GVarsTree.setToolTipText("User paths for ScalaSci Classpath. To remove a component from Scala classpath press DEL and restart a new interpreter ");
      
    add(new JScrollPane(GVarsTree));

    GVarsTree.addKeyListener(new KeyListener() {

            @Override
            public void keyTyped(KeyEvent e) {
               
            }
View Full Code Here

Examples of java.awt.event.KeyListener

    table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);

    //set valueisadjusting if holding down a key - don't process setdetail events
    table.addKeyListener(
      new KeyListener() {
        public void keyTyped(KeyEvent e) {
        }

        public void keyPressed(KeyEvent e) {
          synchronized (detail) {
View Full Code Here

Examples of java.awt.event.KeyListener

        frame.pack();
        frame.setLocationRelativeTo(null); // Center in screen

        frame.setVisible( true );
       
        KeyListener klistener = new PongKeyListener( ksession.getEntryPoint( "KeyPressedStream" ), ksession.getEntryPoint( "KeyReleasedStream" ) );
        frame.addKeyListener( klistener );
       
        updateTable();
    }
View Full Code Here

Examples of net.cis.client.game.scenery.ctrl.input.KeyListener

    inputManager.addListener(cameraCtrl, InputStrings.CAMERA_1ST, InputStrings.CAMERA_3RD);
  }

  private void initShipControlKeyListener() {
    KeyListener keyListener = new KeyListener(pvu);

    inputManager.addMapping(InputStrings.ACCELERATE,
        new KeyTrigger(inputBinding.getKeyBinding(InputStrings.ACCELERATE)));
    inputManager.addMapping(InputStrings.DECELERATE,
        new KeyTrigger(inputBinding.getKeyBinding(InputStrings.DECELERATE)));
View Full Code Here

Examples of net.rim.device.api.system.KeyListener

        }

        if( _keyMonitor == null ) {
           
            //Anonymous implementation of the net.rim.device.api.system.KeyListener interface
            _keyMonitor = new KeyListener() {
               
                /**
                * @see net.rim.device.api.system.KeyListener#keyDown(int, int)
                */
                public boolean keyDown( int keycode, int time ) {
View Full Code Here

Examples of org.eclipse.swt.events.KeyListener

    grid_data.horizontalSpan = 2;
    grid_data.heightHint = 50;
    text.setLayoutData(grid_data);
       
    text.addKeyListener(
      new KeyListener()
      {
        public void
        keyPressed(
          KeyEvent e)
        {
View Full Code Here

Examples of org.eclipse.swt.events.KeyListener

            sels, view);
      }
     
    }, false) ;
   
    view.addKeyListener(new KeyListener() {
      public void keyPressed(KeyEvent event) {
       
      }
     
      public void keyReleased(KeyEvent event) {
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.