Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javafx.application.Application;
- import javafx.geometry.Pos;
- import javafx.scene.Scene;
- import javafx.scene.control.Button;
- import javafx.scene.control.Label;
- import javafx.scene.layout.GridPane;
- import javafx.scene.layout.StackPane;
- import javafx.scene.text.Font;
- import javafx.scene.text.Text;
- import javafx.stage.Stage;
- public class sample extends Application {
- public static void main(String[] args) {
- launch();
- }
- public void start(Stage stage) throws Exception {
- GridPane gridPane = new GridPane();
- Text heading = new Text("Sample");
- heading.setFont(new Font(56));
- gridPane.add(heading, 0, 0);
- Scene scene = new Scene(gridPane);
- stage.setMaximized(true);
- stage.setScene(scene);
- stage.show();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement