Exact picture seems to work

This commit is contained in:
2025-09-02 21:53:03 +02:00
parent f15208fe6d
commit b2571c191f
137 changed files with 2487 additions and 797 deletions

View File

@@ -16,5 +16,17 @@
<groupId>ch.gtache.fro.gui</groupId>
<artifactId>gui-fx</artifactId>
</dependency>
<dependency>
<groupId>ch.gtache.fro</groupId>
<artifactId>fro-vogelwarte</artifactId>
</dependency>
<dependency>
<groupId>ch.gtache.fro</groupId>
<artifactId>fro-oiseaux-net</artifactId>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
</dependency>
</dependencies>
</project>

View File

@@ -18,6 +18,9 @@ public final class FroApplication extends Application {
final var loader = component.getMainLoader();
loader.load();
stage.setScene(new Scene(loader.getRoot()));
stage.sizeToScene();
stage.setWidth(820);
stage.setHeight(900);
stage.show();
}
}

View File

@@ -1,12 +1,16 @@
package ch.gtache.fro.gui.run;
import javafx.application.Application;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
/**
* The main class
*/
public final class Main {
private static final Logger logger = LogManager.getLogger(Main.class);
private Main() {
}
@@ -16,6 +20,7 @@ public final class Main {
* @param args the command line arguments
*/
public static void main(final String[] args) {
Thread.setDefaultUncaughtExceptionHandler((t, e) -> logger.error("Uncaught exception on thread {}", t, e));
Application.launch(FroApplication.class, args);
}
}

View File

@@ -3,12 +3,14 @@ package ch.gtache.fro.gui.run.modules;
import ch.gtache.fro.modules.gui.fx.FXModule;
import ch.gtache.fro.modules.gui.impl.GuiCoreModule;
import ch.gtache.fro.modules.impl.CoreModule;
import ch.gtache.fro.modules.oiseaux.net.OiseauxNetModule;
import ch.gtache.fro.modules.vogelwarte.VogelwarteModule;
import dagger.Component;
import jakarta.inject.Singleton;
import javafx.fxml.FXMLLoader;
@Singleton
@Component(modules = {CoreModule.class, GuiCoreModule.class, FXModule.class})
@Component(modules = {CoreModule.class, GuiCoreModule.class, FXModule.class, VogelwarteModule.class, OiseauxNetModule.class})
public interface FroComponent {
/**

View File

@@ -4,11 +4,13 @@
module ch.gtache.fro.gui.run {
requires ch.gtache.fro.gui.fx;
requires ch.gtache.fro.core;
requires dagger;
requires java.compiler;
requires javafx.graphics;
requires javafx.fxml;
requires jakarta.inject;
requires org.apache.logging.log4j.core;
requires ch.gtache.fro.gui.core;
requires ch.gtache.fro.vogelwarte;
requires ch.gtache.fro.oiseaux.net;
exports ch.gtache.fro.gui.run to javafx.graphics;
}

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="warn">
<Appenders>
<!-- Console appender configuration -->
<Console name="console" target="SYSTEM_OUT">
<PatternLayout
pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
</Console>
</Appenders>
<Loggers>
<Root level="info">
<AppenderRef ref="console"/>
</Root>
</Loggers>
</Configuration>