parent
f0707c5412
commit
9dddeeccf8
18
pom.xml
18
pom.xml
|
@ -6,7 +6,9 @@
|
||||||
|
|
||||||
<groupId>org.aohe</groupId>
|
<groupId>org.aohe</groupId>
|
||||||
<artifactId>sane-service</artifactId>
|
<artifactId>sane-service</artifactId>
|
||||||
<version>0.2.5-b</version>
|
<version>0.2.6</version>
|
||||||
|
|
||||||
|
<name>aohe-sane-service</name>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<maven.compiler.source>21</maven.compiler.source>
|
<maven.compiler.source>21</maven.compiler.source>
|
||||||
|
@ -63,6 +65,20 @@
|
||||||
<artifactId>Java-WebSocket</artifactId>
|
<artifactId>Java-WebSocket</artifactId>
|
||||||
<version>1.5.3</version>
|
<version>1.5.3</version>
|
||||||
</dependency>
|
</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>
|
</dependencies>
|
||||||
<build>
|
<build>
|
||||||
<finalName>sane-service-v${project.version}</finalName>
|
<finalName>sane-service-v${project.version}</finalName>
|
||||||
|
|
|
@ -1,13 +1,12 @@
|
||||||
package org.aohe;
|
package org.aohe;
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.aohe.core.sane.utils.SaneSessionUtils;
|
import org.aohe.core.sane.utils.SaneSessionUtils;
|
||||||
import org.aohe.core.swing.MainWindow;
|
import org.aohe.core.swing.MainWindow;
|
||||||
import org.aohe.core.utils.CommandUtils;
|
import org.aohe.core.utils.CommandUtils;
|
||||||
import org.aohe.core.utils.SystemUtils;
|
import org.aohe.core.utils.SystemUtils;
|
||||||
import org.aohe.core.web.SocketFactory;
|
import org.aohe.core.web.SocketFactory;
|
||||||
|
import com.formdev.flatlaf.FlatLightLaf;
|
||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
|
|
||||||
|
@ -18,9 +17,9 @@ public class Main {
|
||||||
log.info(" 当前系统类型: {}", SystemUtils.getOsName());
|
log.info(" 当前系统类型: {}", SystemUtils.getOsName());
|
||||||
try {
|
try {
|
||||||
//设置窗口主题
|
//设置窗口主题
|
||||||
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
|
//FlatLightLaf.setup();
|
||||||
} catch (ClassNotFoundException | InstantiationException | IllegalAccessException |
|
UIManager.setLookAndFeel(new FlatLightLaf());
|
||||||
UnsupportedLookAndFeelException e) {
|
} catch (UnsupportedLookAndFeelException e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
//初始化其他资源
|
//初始化其他资源
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
package org.aohe.core;
|
|
Loading…
Reference in New Issue