Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2019
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.50 KB | None | 0 0
  1. import javafx.application.Application;
  2. import javafx.scene.Scene;
  3. import javafx.scene.control.Label;
  4. import javafx.scene.layout.VBox;
  5. import javafx.stage.Stage;
  6.  
  7. public class App extends Application {
  8.     @Override
  9.     public void start(Stage stage) {
  10.         Label shortLabel = new Label("Short");
  11.         Label longLabel = new Label("Long".repeat(42));
  12.         Scene scene = new Scene(new VBox(shortLabel, longLabel), 1280, 720);
  13.         stage.setScene(scene);
  14.         stage.show();
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement