Skip to content

Commit 65558a9

Browse files
committed
version 0.2
1 parent d8c1b70 commit 65558a9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main/java/eu/mihosoft/scaledfx/Main.java

+7
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
package eu.mihosoft.scaledfx;
2929

3030
import javafx.application.Application;
31+
import javafx.scene.Scene;
3132
import javafx.scene.control.Button;
3233
import javafx.stage.Stage;
3334

@@ -43,5 +44,11 @@ public static void main(String[] args) {
4344
public void start(Stage primaryStage) throws Exception {
4445
ScalableContentPane scp = new ScalableContentPane();
4546
scp.setContent(new Button("Scaled Button"));
47+
48+
Scene scene = new Scene(scp);
49+
50+
primaryStage.setScene(scene);
51+
primaryStage.setTitle("Scalable Content Pane Demo");
52+
primaryStage.show();
4653
}
4754
}

0 commit comments

Comments
 (0)