parent
f0707c5412
commit
9dddeeccf8
18
pom.xml
18
pom.xml
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
//初始化其他资源
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
package org.aohe.core;
|
Loading…
Reference in New Issue