first commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import javafx.application.Application;
|
||||
import javafx.event.*;
|
||||
import javafx.scene.control.Button;
|
||||
import javafx.scene.input.*;
|
||||
import javafx.scene.layout.StackPane;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.stage.Stage;
|
||||
|
||||
public class UgeseddelFormiddag extends Application {
|
||||
public static void main(String[] args) {launch(args);}
|
||||
|
||||
@Override
|
||||
public void start(Stage primaryStage) {
|
||||
primaryStage.setTitle("Hello");
|
||||
StackPane root = new StackPane();
|
||||
root.getChildren().add(new Button("Button 1"));
|
||||
Scene scene = new Scene(root, 300, 250);
|
||||
primaryStage.setScene(scene);
|
||||
primaryStage.show();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user