dump JavaFX Event - Java JavaFX

Java examples for JavaFX:Key Event

Description

dump JavaFX Event

Demo Code


//package com.java2s;
import javafx.event.Event;

public class Main {
    public static void dumpEvent(Event pEvent) {
        System.out.println("Event Class=["
                + pEvent.getClass().getSimpleName() + "] Source=["
                + pEvent.getSource() + "] Target=[" + pEvent.getTarget()
                + "]");
    }//w ww.  j a  v a 2s.c om
}

Related Tutorials