Skip to article frontmatterSkip to article content

Building GUI

Cornell University

Event Handlers

interface EventHandler<T>{
    void handle(T event);
}
class MyHandler implemens Evethandler<ActionEvent>{
    void handle (ActionEvent e){
        print("click");
    }
}