diff --git a/lib/djnativeswing-swt.jar b/lib/djnativeswing-swt.jar new file mode 100644 index 0000000..5fd63dd Binary files /dev/null and b/lib/djnativeswing-swt.jar differ diff --git a/lib/djnativeswing.jar b/lib/djnativeswing.jar new file mode 100644 index 0000000..b16382d Binary files /dev/null and b/lib/djnativeswing.jar differ diff --git a/lib/swt-4.3-win32-win32-x86_64.jar b/lib/swt-4.3-win32-win32-x86_64.jar new file mode 100644 index 0000000..916306b Binary files /dev/null and b/lib/swt-4.3-win32-win32-x86_64.jar differ diff --git a/pom.xml b/pom.xml index 815f8c4..4ff99c4 100644 --- a/pom.xml +++ b/pom.xml @@ -93,6 +93,36 @@ + + + djnativeswing + djnativeswing + 4.3 + system + ${project.basedir}/lib/djnativeswing.jar + + + + + + djnativeswing_swt + djnativeswing_swt + 4.3 + system + ${project.basedir}/lib/djnativeswing-swt.jar + + + + + + swt-4.3-win32-win32-x86_64 + swt-4.3-win32-win32-x86_64 + 4.3 + system + ${project.basedir}/lib/swt-4.3-win32-win32-x86_64.jar + + + org.jsoup diff --git a/src/main/java/com/wuzf/swing/demos/DemoModule.java b/src/main/java/com/wuzf/swing/demos/DemoModule.java index 9316cfa..c45c39b 100644 --- a/src/main/java/com/wuzf/swing/demos/DemoModule.java +++ b/src/main/java/com/wuzf/swing/demos/DemoModule.java @@ -17,6 +17,7 @@ package com.wuzf.swing.demos;/* import java.awt.BorderLayout; import java.awt.Dimension; import java.io.BufferedReader; +import java.io.File; import java.io.InputStream; import java.io.InputStreamReader; import java.net.URL; @@ -246,9 +247,12 @@ public class DemoModule extends JApplet { InputStreamReader isr; CodeViewer cv = new CodeViewer(); URL url; - + String worspaceAbPath = System.getProperty("user.dir"); + String java_path ="\\src\\main\\java\\"; + String demo_path = "com\\wuzf\\swing\\demos\\"; try { - url = getClass().getResource(filename); + String path = worspaceAbPath + java_path +demo_path + filename; + url = new File(path).toURL(); is = url.openStream(); isr = new InputStreamReader(is, "UTF-8"); BufferedReader reader = new BufferedReader(isr); diff --git a/src/main/java/com/wuzf/swing/demos/SwingSet2.java b/src/main/java/com/wuzf/swing/demos/SwingSet2.java index e6bb8fe..bb9a568 100644 --- a/src/main/java/com/wuzf/swing/demos/SwingSet2.java +++ b/src/main/java/com/wuzf/swing/demos/SwingSet2.java @@ -281,7 +281,7 @@ public class SwingSet2 extends JPanel { // BeautyEyeLNFHelper.FrameBorderStyle.osLookAndFeelDecorated; //// UIManager.setLookAndFeel(BeautyEyeLNFHelper.getBeautyEyeLNFCrossPlatform());//new WindowsLookAndFeel()); UIManager.put("RootPane.setupButtonVisible", false); - BeautyEyeLNFHelper.debug = true; + BeautyEyeLNFHelper.debug = false; // BeautyEyeLNFHelper.translucencyAtFrameInactive = false; BeautyEyeLNFHelper.launchBeautyEyeLNF(); // UIManager.put("ToolBar.border",new BorderUIResource( diff --git a/src/main/java/com/wuzf/swing/utils/DragTest.java b/src/main/java/com/wuzf/swing/utils/DragTest.java new file mode 100644 index 0000000..eb35fd8 --- /dev/null +++ b/src/main/java/com/wuzf/swing/utils/DragTest.java @@ -0,0 +1,123 @@ +/* + * Copyright (C), 2022-2022, Freedom Person + * FileName: DragTestUtil.java + * Author: lucky + * Date: 2022/1/16 5:21 + * Description: //模块目的、功能描述 + * History: //修改记录 + *