Package javafx.scene

Examples of javafx.scene.Scene.addEventHandler()


    viewer.setDocument(document);
    mainPane.setCenter(viewer.getLayoutNode());
   
    Scene s = new Scene(mainPane);
    s.getStylesheets().add(MainApplication.class.getResource("test.css").toExternalForm());
    s.addEventHandler(KeyEvent.KEY_PRESSED, new EventHandler<KeyEvent>() {

      @Override
      public void handle(KeyEvent event) {
        if( event.isControlDown() && event.getCode() == KeyCode.SPACE ) {
          System.err.println("==============> EXEC");
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.