You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
831 B

package de.fd.fh;
import javafx.application.Application;
import javafx.application.Platform;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.Pane;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;
public class ClientApp extends Application
{
public static void main(String... args)
{
System.out.println("Hallo Welt!");
launch(args);
}
@Override
public void start(Stage primaryStage)
{
primaryStage.setTitle("Hello JavaFX!");
Button btn = new Button();
btn.setText("Hello JavaFX!");
btn.setOnAction( (event) -> Platform.exit() );
Pane root = new StackPane();
root.getChildren().add(btn);
primaryStage.setScene(new Scene(root, 300, 150));
primaryStage.show();
}
}