Commit a5beae28 authored by Typhon0's avatar Typhon0
Browse files

gradle 6.0

parent d4f0e30f
plugins {
id 'application'
id 'org.openjfx.javafxplugin' version '0.0.8'
......
#Wed Nov 06 21:27:51 CET 2019
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.0-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
......@@ -11,10 +11,10 @@ public class MainApp extends Application {
@Override
public void start(Stage stage) throws Exception {
Parent root = FXMLLoader.load(getClass().getResource("scene.fxml"));
Parent root = FXMLLoader.load(getClass().getResource("/fxml/scene.fxml"));
Scene scene = new Scene(root);
scene.getStylesheets().add(getClass().getResource("styles.css").toExternalForm());
scene.getStylesheets().add(getClass().getResource("/stylesheet/style.css").toExternalForm());
stage.setTitle("JavaFX and Gradle");
stage.setScene(scene);
......
module boilerplategradlejdk13 {
requires javafx.controls;
requires javafx.fxml;
opens org.openjfx to javafx.fxml;
exports org.openjfx;
opens boilerplategradlejdk13 to javafx.fxml;
opens boilerplategradlejdk13.controller to javafx.fxml;
exports boilerplategradlejdk13;
}
\ No newline at end of file
......@@ -4,7 +4,8 @@
<?import javafx.scene.layout.StackPane?>
<StackPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="org.openjfx.FXMLController">
<StackPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0"
xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="boilerplategradlejdk13.controller.FXMLController">
<children>
<Label fx:id="label" text="Label" />
</children>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment