Examples of addKeyListener()


Examples of com.sun.star.awt.XWindow.addKeyListener()

        super(xmsf);
        Create c = new Create();
        XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class,chkFTP);
        xWindow.addKeyListener(c);
        xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class,chkLocalDir);
        xWindow.addKeyListener(c);
        xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class,chkZip);
        xWindow.addKeyListener(c);
    }

    /* *********************************************************
 
View Full Code Here

Examples of com.sun.star.awt.XWindow.addKeyListener()

        XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class,chkFTP);
        xWindow.addKeyListener(c);
        xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class,chkLocalDir);
        xWindow.addKeyListener(c);
        xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class,chkZip);
        xWindow.addKeyListener(c);
    }

    /* *********************************************************
     *  *******************************************************
     *          EVENT and UI METHODS
View Full Code Here

Examples of com.sun.star.awt.XWindow.addKeyListener()

     * Is used to add a keylistener to different controls...
     */
    static void addKeyListener(Object control,XKeyListener listener) {
        XWindow xlastControl = (XWindow)UnoRuntime.queryInterface(XWindow.class,
                control );
        xlastControl.addKeyListener(listener);
    }
   

    /**
     * Is used to add a focuslistener to different controls...
View Full Code Here

Examples of de.FBEditor.struct.JTextPane2.addKeyListener()

public class Listener {

  public static void addKeyListener(final FBEdit fbedit) {
    final JTextPane2 pane2 = fbedit.getJTextPane();
   
    pane2.addKeyListener(new KeyListener() {

      public void keyTyped(KeyEvent keyevent) {
      }

      public void keyPressed(KeyEvent keyevent) {
View Full Code Here

Examples of edu.mit.blocks.renderable.RenderableBlock.addKeyListener()

                        //TODO: this shouldn't return, it should break
                        //but you can't double break in java
                    }
                }
                rb.addMouseListener(this);
                rb.addKeyListener(this);
                setFocus(event.getSourceBlockID());
                rb.grabFocus();
                break;
        }
    }
View Full Code Here

Examples of gov.nasa.worldwind.awt.WorldWindowGLCanvas.addKeyListener()

  public static void main(String[] args) {
    Frame frame = new Frame("WorldwindFull");
    final WorldWindowGLCanvas worldWindowGLCanvas = new WorldWindowGLCanvas();
    worldWindowGLCanvas.setModel(new BasicModel());

    worldWindowGLCanvas.addKeyListener(new java.awt.event.KeyListener() {
      public void keyTyped(KeyEvent e) {
      }

      public void keyReleased(KeyEvent e) {
      }
View Full Code Here

Examples of java.awt.Button.addKeyListener()

        b = new Button("Cancel");

        b.setActionCommand("ConnectCancel");
        b.addActionListener(this);
        b.addKeyListener(this);
        p.add(b);

        b = new Button("Ok");

        b.setActionCommand("ConnectOk");
View Full Code Here

Examples of java.awt.Choice.addKeyListener()

        p.add(createLabel("Type:"));

        Choice types = new Choice();

        types.addItemListener(this);
        types.addKeyListener(this);

        for (int i = 0; i < sJDBCTypes.length; i++) {
            types.add(sJDBCTypes[i][0]);
        }
View Full Code Here

Examples of java.awt.Component.addKeyListener()

                  // Notify controller that active view changed
                  for (View view : focusableViews) {
                    if (view != null && SwingUtilities.isDescendingFrom(gainedFocusedComponent, (JComponent)view)) {
                      homePane.controller.focusedViewChanged(view);
 
                      gainedFocusedComponent.addKeyListener(homePane.specialKeysListener);
                     
                      // Update the component used by clipboard actions
                      homePane.lastFocusedComponent = (JComponent)gainedFocusedComponent;
                      break;
                    }
View Full Code Here

Examples of java.awt.Component.addKeyListener()

            };
            mini.addPropertyChangeListener(ColorPicker.SELECTED_COLOR_PROPERTY, p);
            mini.addPropertyChangeListener(ColorPicker.OPACITY_PROPERTY, p);
            for (int a = 0; a < mini.getComponentCount(); a++) {
                Component c = mini.getComponent(a);
                c.addKeyListener(commitListener);
            }
            add(mini);
        }

        public Component getFocusableComponent() {
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.