Skip to content

Commit 0ecadbd

Browse files
author
Rajeev Kumar Singh
committed
fxml path
1 parent fc62c91 commit 0ecadbd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

javafx-css-demo-app/src/javafx/example/CSSDemoApplication.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ public class CSSDemoApplication extends Application {
1111

1212
@Override
1313
public void start(Stage primaryStage) throws Exception {
14-
Parent root = FXMLLoader.load(getClass().getResource("javafx/example/css_demo.fxml"));
15-
Scene scene = new Scene(root, 800, 500);
16-
scene.getStylesheets().add(getClass().getResource("javafx/example/demo.css").toExternalForm());
14+
Parent root = FXMLLoader.load(getClass().getResource("css_demo.fxml"));
15+
Scene scene = new Scene(root, 800, 450);
16+
scene.getStylesheets().add(getClass().getResource("demo.css").toExternalForm());
1717
primaryStage.setScene(scene);
1818
primaryStage.show();
1919
}

0 commit comments

Comments
 (0)