Examples of KeyAdapter


Examples of org.eclipse.swt.events.KeyAdapter

            }
          }
        }  */ 

        txtDir = new Text(schedulerGroup, SWT.BORDER);
        txtDir.addKeyListener(new KeyAdapter() {
          public void keyPressed(final KeyEvent e) {
            try {
              if (e.keyCode == SWT.CR) {
                FTPProfile profile = listener.getCurrProfile();
                HashMap h = profile.changeDirectory(txtDir.getText());
View Full Code Here

Examples of org.eclipse.swt.events.KeyAdapter

        label3.setLayoutData(gridData8);
        GridData gridData9 = new org.eclipse.swt.layout.GridData(GridData.FILL, GridData.FILL, false, false);
        gridData9.heightHint = 80;
       
        tComment = new Text(group, SWT.MULTI | SWT.WRAP | SWT.V_SCROLL | SWT.BORDER | SWT.H_SCROLL);
        tComment.addKeyListener(new KeyAdapter() {
          public void keyPressed(final KeyEvent e) {
            if(e.keyCode==97 && e.stateMask == SWT.CTRL){
          tComment.setSelection(0, tComment.getText().length());
        }
          }
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.