Skip to content

Commit

Permalink
Merge pull request #2 from technagreek/jdk15-openjfx
Browse files Browse the repository at this point in the history
Base version Java 15 with Open JFX 15
  • Loading branch information
technagreek authored Dec 7, 2020
2 parents f066079 + 7ced988 commit 18a017d
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 10 deletions.
2 changes: 0 additions & 2 deletions enchald.iml

This file was deleted.

29 changes: 24 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,38 @@
<version>1.0.0.0</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>15</maven.compiler.source>
<maven.compiler.target>15</maven.compiler.target>
</properties>

<dependencies>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>15.0.1</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-fxml</artifactId>
<version>15.0.1</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<source>15</source>
<target>15</target>
</configuration>
</plugin>
<plugin>
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>0.0.5</version>
<configuration>
<mainClass>org.technagreek.java.enchald.main.AppLauncher</mainClass>
</configuration>
</plugin>
<plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
public class MenuBarController {
public void showSample1(Event event) throws IOException {
BorderPane mainPanel = AppLauncher.getMainModule().getMainPane();
URL sample1FXML = this.getClass().getResource("../../modules/sample1/sample1.fxml");
URL sample1FXML = MenuBarController.class.getResource("/org/technagreek/java/enchald/modules/sample1/sample1.fxml");

FXMLLoader loader = new FXMLLoader(sample1FXML);

Expand All @@ -24,7 +24,7 @@ public void showSample1(Event event) throws IOException {

public void showSample2(Event event) throws IOException {
BorderPane mainPanel = AppLauncher.getMainModule().getMainPane();
URL sample1FXML = this.getClass().getResource("../../modules/sample2/sample2.fxml");
URL sample1FXML = MenuBarController.class.getResource("/org/technagreek/java/enchald/modules/sample2/sample2.fxml");

FXMLLoader loader = new FXMLLoader(sample1FXML);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class MainApplication extends Application implements MainModule {

public static void showAbout() throws IOException {
Stage stage = new Stage();
AnchorPane root = FXMLLoader.load(MainApplication.class.getResource("../core/help/About.fxml"));
AnchorPane root = FXMLLoader.load(MainApplication.class.getResource("/org/technagreek/java/enchald/core/help/About.fxml"));
stage.setScene(new Scene(root));
stage.setTitle("About");
stage.initModality(Modality.WINDOW_MODAL);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.technagreek.java.enchald.main;


import javafx.fxml.FXML;
import javafx.scene.paint.Color;
import org.technagreek.java.enchald.core.statusbar.StatusBarController;
Expand Down

0 comments on commit 18a017d

Please sign in to comment.