Datasets:
ArXiv:
License:
File size: 556 Bytes
c574d3a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
package rd222dv_assign3.UpDown;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class UpDownMain extends Application {
@Override
public void start(Stage primaryStage) throws Exception {
UpDownPane upDown = new UpDownPane();
Scene scene = new Scene(upDown);
scene.setOnKeyPressed(e -> upDown.handle(e));
primaryStage.setTitle("UpDownPane!");
primaryStage.setScene(scene);
primaryStage.show();
}
public static void main(String[] args) {
launch(args);
}
} |