mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
add test
This commit is contained in:
parent
4ad131777d
commit
6a0f237a0e
@ -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>
|
||||||
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user