fire New JavaFX Event - Java JavaFX

Java examples for JavaFX:Key Event

Description

fire New JavaFX Event

Demo Code


//package com.java2s;

import javafx.event.Event;

import javafx.scene.Node;

public class Main {
    public static void fireNewEvent(Event origin, Event newEvent) {
        ((Node) origin.getSource()).fireEvent(newEvent);
    }/* w w  w.j av  a  2s . c om*/
}

Related Tutorials