This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Sample01TornadoFXApp : App(Sample01View::class) | |
class Sample01View : View("Sample 01 TornadoFX") { | |
override val root = borderpane { | |
prefWidth = 400.0 | |
prefHeight = 200.0 | |
center { | |
button("Click Me") { | |
setOnAction { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Sample01JavaFXApp extends Application { | |
public static void main(String[] args) { | |
Application.launch(args); | |
} | |
@Override | |
public void start(Stage primaryStage) throws Exception { | |
BorderPane root = new BorderPane(); | |
Button button = new Button("Click Me"); |