Package javafx.scene.shape

Examples of javafx.scene.shape.Rectangle.requestFocus()


    this.screenHeight = screenHeight;

    Rectangle inputCapture = new Rectangle();
    inputCapture.setFill(Color.TRANSPARENT);
    inputCapture.setFocusTraversable(true);
    inputCapture.requestFocus();

    // capture keyboard events
    inputCapture.setOnKeyPressed(new EventHandler<KeyEvent>() {
      @Override
      public void handle(KeyEvent ke) {
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.