|
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
import javafx.scene.text.Font;
public class UIBsp02 extends Application {
@Override
public void start(Stage stage) {
VBox root = new VBox();
Label label = new Label("Dies ist ein Anzeigetext");
label.setFont(new Font("Courier New",22));
root.getChildren().add(label);
Scene scene= new Scene(root, 250, 80);
stage.setTitle("UIBsp02");
stage.setScene(scene);
stage.show();
}
public static void main(String[] argv) {
launch(argv);
}
}
|
|