blob: 0290f7b069a1578f0625b9a4592a60c7feb0574d (
plain)
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
26
|
package com.example;
import javafx.application.Application;
import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;
public class App extends Application {
@Override
public void start(Stage stage) {
var label = new Label("Hello JavaFX from Nix Flakes");
var root = new StackPane(label);
root.setPadding(new Insets(24));
var scene = new Scene(root, 640, 360);
stage.setTitle("JavaFX Projekt");
stage.setScene(scene);
stage.show();
}
public static void main(String[] args) {
launch();
}
}
|