r33 - in jtimerhtml5: . src/main/java/org/chorem/jtimer
Author: qmoriceau Date: 2013-05-21 10:32:29 +0200 (Tue, 21 May 2013) New Revision: 33 Url: http://chorem.org/projects/incubator/repository/revisions/33 Log: Amelioration de maven Removed: jtimerhtml5/lib/ Modified: jtimerhtml5/pom.xml jtimerhtml5/src/main/java/org/chorem/jtimer/JTimer.java Modified: jtimerhtml5/pom.xml =================================================================== --- jtimerhtml5/pom.xml 2013-05-20 13:06:14 UTC (rev 32) +++ jtimerhtml5/pom.xml 2013-05-21 08:32:29 UTC (rev 33) @@ -122,7 +122,7 @@ <artifactId>javafx</artifactId> <version>2.2.3</version> <scope>system</scope> - <systemPath>${project.basedir}/lib/jfxrt.jar</systemPath> + <systemPath>${java.home}/lib/jfxrt.jar</systemPath> </dependency> <dependency> Modified: jtimerhtml5/src/main/java/org/chorem/jtimer/JTimer.java =================================================================== --- jtimerhtml5/src/main/java/org/chorem/jtimer/JTimer.java 2013-05-20 13:06:14 UTC (rev 32) +++ jtimerhtml5/src/main/java/org/chorem/jtimer/JTimer.java 2013-05-21 08:32:29 UTC (rev 33) @@ -63,7 +63,7 @@ layout.getChildren().addAll(confirmationResults, browser); stage.setScene(new Scene(layout)); stage.show(); - stage.getScene().getStylesheets().add(getClass().getResource("cssJavaFX/alert_box.css").toExternalForm()); + stage.getScene().getStylesheets().add(getClass().getResource("/cssJavaFX/alert_box.css").toExternalForm()); // permet d'ouvrir des popup. webEngine.setCreatePopupHandler(new Callback<PopupFeatures, WebEngine>() { @@ -120,7 +120,7 @@ } }); - URL maPage = getClass().getResource("html/index.html"); + URL maPage = getClass().getResource("/html/index.html"); webEngine.load(maPage.toExternalForm()); root.getChildren().addAll(browser); @@ -170,7 +170,7 @@ dragged(dialog); // style and show the dialog. - dialog.getScene().getStylesheets().add(getClass().getResource("cssJavaFX/prompt_box.css").toExternalForm()); + dialog.getScene().getStylesheets().add(getClass().getResource("/cssJavaFX/prompt_box.css").toExternalForm()); parent.getScene().getRoot().setEffect(new BoxBlur()); dialog.showAndWait(); @@ -201,7 +201,7 @@ dragged(dialog); // style and show the dialog. - dialog.getScene().getStylesheets().add(getClass().getResource("cssJavaFX/alert_box.css").toExternalForm()); + dialog.getScene().getStylesheets().add(getClass().getResource("/cssJavaFX/alert_box.css").toExternalForm()); parent.getScene().getRoot().setEffect(new BoxBlur()); dialog.showAndWait(); } @@ -243,7 +243,7 @@ // style and show the dialog. - dialog.getScene().getStylesheets().add(getClass().getResource("cssJavaFX/confirm_box.css").toExternalForm()); + dialog.getScene().getStylesheets().add(getClass().getResource("/cssJavaFX/confirm_box.css").toExternalForm()); parent.getScene().getRoot().setEffect(new BoxBlur()); dialog.showAndWait();
participants (1)
-
qmoriceau@users.chorem.org