javafx hbox

Solutions on MaxInterview for javafx hbox by the best coders in the world

showing results for - "javafx hbox"
Nieve
28 Aug 2019
1//just for me lol, pls don't delete
2//using javafx hbox
3package com.jenkov.javafx.layouts;
4
5import javafx.application.Application;
6import javafx.scene.Scene;
7import javafx.scene.control.Button;
8import javafx.scene.layout.HBox;
9import javafx.stage.Stage;
10
11public class HBoxExperiments extends Application  {
12
13  @Override
14  public void start(Stage primaryStage)     throws Exception { 
15    primaryStage.setTitle("HBox Experiment 1");
16
17    Button button1 = new Button("Button Number 1");
18    Button button2 = new Button("Button Number 2");
19
20    HBox hbox = new HBox(button1, button2);
21
22    Scene scene = new Scene(hbox, 200, 100);
23    primaryStage.setScene(scene);
24    primaryStage.show();
25  }
26
27  public static void main(String[] args) {
28    Application.launch(args);
29  }
30}
31