This commit is contained in:
Looly 2024-12-17 08:52:59 +08:00
parent 4ad131777d
commit 6a0f237a0e
3 changed files with 25 additions and 1 deletions

View File

@ -57,5 +57,12 @@
<version>${metadata-extractor.version}</version> <version>${metadata-extractor.version}</version>
<optional>true</optional> <optional>true</optional>
</dependency> </dependency>
<!-- UI主题库 -->
<dependency>
<groupId>com.formdev</groupId>
<artifactId>flatlaf</artifactId>
<version>3.5.4</version>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>
</project> </project>

View File

@ -24,6 +24,6 @@ public class DesktopUtilTest {
@Test @Test
@Disabled @Disabled
public void browseTest() { public void browseTest() {
DesktopUtil.browse("https://www.hutool.club"); DesktopUtil.browse("https://hutool.cn");
} }
} }

View File

@ -0,0 +1,17 @@
package org.dromara.hutool.swing;
import com.formdev.flatlaf.FlatDarculaLaf;
import javax.swing.JFrame;
public class FlatLafTest {
public static void main(String[] args) {
FlatDarculaLaf.setup();
final JFrame frame = new JFrame("我的窗口");
frame.setSize(400, 300);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
// 设置窗口可见
frame.setVisible(true);
}
}