Package javafx.scene.input

Examples of javafx.scene.input.MouseEvent


    final EventDispatcher initial = textArea.getEventDispatcher();
    textArea.setEventDispatcher(new EventDispatcher() {
      @Override
      public Event dispatchEvent(Event event, EventDispatchChain tail) {
        if (event instanceof MouseEvent) {
          MouseEvent mouseEvent = (MouseEvent)event;
          if (mouseEvent.getButton() == MouseButton.SECONDARY ||
              (mouseEvent.getButton() == MouseButton.PRIMARY && mouseEvent.isControlDown())) {
            event.consume();
          }
        }
        return initial.dispatchEvent(event, tail);
      }
View Full Code Here

TOP

Related Classes of javafx.scene.input.MouseEvent

Copyright © 2018 www.massapicom. 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.