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
|
public class MaFenetre extends Application{
private Stage stage;
@Override
public void start(Stage primaryStage) { this.stage = primaryStage;
Pane root = new Pane();
Scene scene = new Scene(root,400,400);
stage.setTitle("TestPane");
Label labelProposition = new Label("Votre proposition : ");
root.getChildren().add(labelProposition);
stage.setScene(scene); stage.show();
}
public Stage getStage() {
return stage;
}
public static void main(String[] args) {
launch(args);
}
} |