Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javafx.application.Application;
- import javafx.scene.Scene;
- import javafx.scene.control.Label;
- import javafx.scene.layout.VBox;
- import javafx.stage.Stage;
- public class App extends Application {
- @Override
- public void start(Stage stage) {
- Label shortLabel = new Label("Short");
- Label longLabel = new Label("Long".repeat(42));
- Scene scene = new Scene(new VBox(shortLabel, longLabel), 1280, 720);
- stage.setScene(scene);
- stage.show();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement