Skip to content

Commit 68dafde

Browse files
committed
refactoring
1 parent d374715 commit 68dafde

File tree

6 files changed

+14
-3
lines changed

6 files changed

+14
-3
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ext {
1717
}
1818

1919
tasks.withType(JavaCompile).configureEach {
20-
options.encoding = 'UTF-8'
20+
options.setEncoding("utf-8")
2121
}
2222

2323
application {

gradle/wrapper/gradle-wrapper.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@ distributionPath=wrapper/dists
33
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-

src/main/java/io/github/gleidsonmt/dashboardfx/App.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,22 @@
66
import io.github.gleidsonmt.glad.theme.Font;
77
import io.github.gleidsonmt.glad.theme.ThemeProvider;
88
import javafx.application.Application;
9+
import javafx.application.Platform;
910
import javafx.scene.Scene;
1011
import javafx.stage.Stage;
1112

13+
import java.util.Locale;
14+
import java.util.logging.Filter;
15+
import java.util.logging.Level;
16+
import java.util.logging.Logger;
17+
1218
/**
1319
* @author Gleidson Neves da Silveira | gleidisonmt@gmail.com
1420
* Create on 10/06/2025
1521
*/
1622
public class App extends Application {
1723

24+
1825
@Override
1926
public void start(Stage stage) throws Exception {
2027
Root root = new Root(new Main());

src/main/java/io/github/gleidsonmt/dashboardfx/LibrariesTools.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@
66
import javafx.stage.Stage;
77

88
import java.io.File;
9+
import java.io.IOException;
910
import java.lang.reflect.InvocationTargetException;
1011
import java.net.MalformedURLException;
1112
import java.net.URL;
1213
import java.net.URLClassLoader;
14+
import java.util.logging.Level;
15+
import java.util.logging.Logger;
1316

1417

1518
/**
@@ -26,6 +29,7 @@ private static Class<?> loadClassJar(String jarDirectory, String fullClass) {
2629
File jarFile = new File(jarDirectory);
2730
if (!jarFile.exists()) return null;
2831
URL[] urls = {jarFile.toURI().toURL()};
32+
2933
URLClassLoader classLoader = new URLClassLoader(urls, ClassLoader.getSystemClassLoader());
3034
Thread.currentThread().setContextClassLoader(classLoader);
3135
cls = Class.forName(fullClass, true, classLoader);

src/main/java/module-info.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
requires java.desktop;
2121
requires javafx.controls;
2222
requires javafx.base;
23+
requires java.logging;
2324

2425
opens io.github.gleidsonmt.dashboardfx to javafx.fxml;
2526
exports io.github.gleidsonmt.dashboardfx;

0 commit comments

Comments
 (0)