0.2.6-b fix

1.bug修复
This commit is contained in:
jianguo 2024-05-28 13:53:31 +08:00
parent f0707c5412
commit 9dddeeccf8
3 changed files with 21 additions and 7 deletions

18
pom.xml
View File

@ -6,7 +6,9 @@
<groupId>org.aohe</groupId>
<artifactId>sane-service</artifactId>
<version>0.2.5-b</version>
<version>0.2.6</version>
<name>aohe-sane-service</name>
<properties>
<maven.compiler.source>21</maven.compiler.source>
@ -63,6 +65,20 @@
<artifactId>Java-WebSocket</artifactId>
<version>1.5.3</version>
</dependency>
<dependency>
<groupId>com.formdev</groupId>
<artifactId>flatlaf</artifactId>
<version>3.4.1</version>
<classifier>no-natives</classifier>
</dependency>
<!-- <dependency>-->
<!-- <groupId>com.formdev</groupId>-->
<!-- <artifactId>flatlaf</artifactId>-->
<!-- <version>3.4.1</version>-->
<!-- <classifier>linux-x86_64</classifier>-->
<!-- <type>so</type>-->
<!-- </dependency>-->
</dependencies>
<build>
<finalName>sane-service-v${project.version}</finalName>

View File

@ -1,13 +1,12 @@
package org.aohe;
import java.io.IOException;
import lombok.extern.slf4j.Slf4j;
import org.aohe.core.sane.utils.SaneSessionUtils;
import org.aohe.core.swing.MainWindow;
import org.aohe.core.utils.CommandUtils;
import org.aohe.core.utils.SystemUtils;
import org.aohe.core.web.SocketFactory;
import com.formdev.flatlaf.FlatLightLaf;
import javax.swing.*;
@ -18,9 +17,9 @@ public class Main {
log.info(" 当前系统类型: {}", SystemUtils.getOsName());
try {
//设置窗口主题
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (ClassNotFoundException | InstantiationException | IllegalAccessException |
UnsupportedLookAndFeelException e) {
//FlatLightLaf.setup();
UIManager.setLookAndFeel(new FlatLightLaf());
} catch (UnsupportedLookAndFeelException e) {
throw new RuntimeException(e);
}
//初始化其他资源

View File

@ -1 +0,0 @@
package org.aohe.core;