All Classes Namespaces Files Functions Variables
Main.java
Go to the documentation of this file.
1 package fi.jyu.mit.fxgui;
2 
3 import javafx.application.Application;
4 import javafx.scene.Scene;
5 import javafx.stage.Stage;
6 
7 
8 public class Main extends Application {
9  @Override
10  public void start(Stage stage) throws Exception {
11  EditPanel customControl = new EditPanel();
12  customControl.setText("Hello!");
13 
14  stage.setScene(new Scene(customControl));
15  stage.setTitle("Custom Control");
16  stage.setWidth(300);
17  stage.setHeight(100);
18  stage.show();
19  }
20 
21  public static void main(String[] args) {
22  launch(args);
23  }
24 }