Skip to content

Commit de3f423

Browse files
committed
swing
1 parent 0c69621 commit de3f423

36 files changed

+4860
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@
2121

2222
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
2323
hs_err_pid*
24+
__MACOSX
25+
target
26+
.idea

swing/.gitignore

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
target/
2+
!.mvn/wrapper/maven-wrapper.jar
3+
!**/src/main/**/target/
4+
!**/src/test/**/target/
5+
6+
### IntelliJ IDEA ###
7+
.idea/modules.xml
8+
.idea/jarRepositories.xml
9+
.idea/compiler.xml
10+
.idea/libraries/
11+
*.iws
12+
*.iml
13+
*.ipr
14+
15+
### Eclipse ###
16+
.apt_generated
17+
.classpath
18+
.factorypath
19+
.project
20+
.settings
21+
.springBeans
22+
.sts4-cache
23+
24+
### NetBeans ###
25+
/nbproject/private/
26+
/nbbuild/
27+
/dist/
28+
/nbdist/
29+
/.nb-gradle/
30+
build/
31+
!**/src/main/**/build/
32+
!**/src/test/**/build/
33+
34+
### VS Code ###
35+
.vscode/
36+
37+
### Mac OS ###
38+
.DS_Store

swing/dependency-reduced-pom.xml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<groupId>com.tushuoit</groupId>
5+
<artifactId>jiayutools</artifactId>
6+
<version>1.0-SNAPSHOT</version>
7+
<build>
8+
<plugins>
9+
<plugin>
10+
<artifactId>maven-compiler-plugin</artifactId>
11+
<configuration>
12+
<source>22</source>
13+
<target>17</target>
14+
<release>11</release>
15+
</configuration>
16+
</plugin>
17+
<plugin>
18+
<artifactId>maven-shade-plugin</artifactId>
19+
<version>3.6.0</version>
20+
<executions>
21+
<execution>
22+
<phase>package</phase>
23+
<goals>
24+
<goal>shade</goal>
25+
</goals>
26+
<configuration>
27+
<transformers>
28+
<transformer>
29+
<mainClass>com.tushuoit.Main</mainClass>
30+
</transformer>
31+
</transformers>
32+
</configuration>
33+
</execution>
34+
</executions>
35+
</plugin>
36+
</plugins>
37+
</build>
38+
<dependencies>
39+
<dependency>
40+
<groupId>org.gizmore.jpk</groupId>
41+
<artifactId>jpk</artifactId>
42+
<version>1.11.0</version>
43+
<scope>system</scope>
44+
<systemPath>${project.basedir}/lib/JPK_406.jar</systemPath>
45+
</dependency>
46+
</dependencies>
47+
<properties>
48+
<maven.compiler.target>11</maven.compiler.target>
49+
<maven.compiler.source>22</maven.compiler.source>
50+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
51+
</properties>
52+
</project>

swing/example/hiddata.pcap

41.1 KB
Binary file not shown.

swing/example/hiddata.pcap.txt

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
5d01000000000000000000000000000000000000000000000000000000000000
2+
5dec020000000000000000000000000000000000000000000000000000000000
3+
5d01000009000000000000000000000000000000000000000000000000000000
4+
5d01000000000000000000000000000000000000000000000000000000000000
5+
5d0100000f000000000000000000000000000000000000000000000000000000
6+
5d01000000000000000000000000000000000000000000000000000000000000
7+
5d01000004000000000000000000000000000000000000000000000000000000
8+
5d01000000000000000000000000000000000000000000000000000000000000
9+
5d0100000a000000000000000000000000000000000000000000000000000000
10+
5d01000000000000000000000000000000000000000000000000000000000000
11+
5d01020000000000000000000000000000000000000000000000000000000000
12+
5d0102002f000000000000000000000000000000000000000000000000000000
13+
5d01020000000000000000000000000000000000000000000000000000000000
14+
5d01000000000000000000000000000000000000000000000000000000000000
15+
5dec020000000000000000000000000000000000000000000000000000000000
16+
5d0100001e000000000000000000000000000000000000000000000000000000
17+
5d01000000000000000000000000000000000000000000000000000000000000
18+
5d01000004000000000000000000000000000000000000000000000000000000
19+
5d01000000000000000000000000000000000000000000000000000000000000
20+
5d0100001f000000000000000000000000000000000000000000000000000000
21+
5d01000000000000000000000000000000000000000000000000000000000000
22+
5d01000004000000000000000000000000000000000000000000000000000000
23+
5d01000000000000000000000000000000000000000000000000000000000000
24+
5dec020000000000000000000000000000000000000000000000000000000000
25+
5d01000020000000000000000000000000000000000000000000000000000000
26+
5d01000000000000000000000000000000000000000000000000000000000000
27+
5d01000004000000000000000000000000000000000000000000000000000000
28+
5d01000000000000000000000000000000000000000000000000000000000000
29+
5d01000021000000000000000000000000000000000000000000000000000000
30+
5d01000000000000000000000000000000000000000000000000000000000000
31+
5d01000004000000000000000000000000000000000000000000000000000000
32+
5d01000000000000000000000000000000000000000000000000000000000000
33+
5d01000022000000000000000000000000000000000000000000000000000000
34+
5d01000000000000000000000000000000000000000000000000000000000000
35+
5d01000004000000000000000000000000000000000000000000000000000000
36+
5d01000000000000000000000000000000000000000000000000000000000000
37+
5d01000023000000000000000000000000000000000000000000000000000000
38+
5d01000000000000000000000000000000000000000000000000000000000000
39+
5d01000004000000000000000000000000000000000000000000000000000000
40+
5d01000000000000000000000000000000000000000000000000000000000000
41+
5d01000024000000000000000000000000000000000000000000000000000000
42+
5d01000000000000000000000000000000000000000000000000000000000000
43+
5dec020000000000000000000000000000000000000000000000000000000000
44+
5d01000004000000000000000000000000000000000000000000000000000000
45+
5d01000000000000000000000000000000000000000000000000000000000000
46+
5d01000025000000000000000000000000000000000000000000000000000000
47+
5d01000000000000000000000000000000000000000000000000000000000000
48+
5d01000004000000000000000000000000000000000000000000000000000000
49+
5d01000000000000000000000000000000000000000000000000000000000000
50+
5d01000026000000000000000000000000000000000000000000000000000000
51+
5d01000000000000000000000000000000000000000000000000000000000000
52+
5d01000004000000000000000000000000000000000000000000000000000000
53+
5d01000000000000000000000000000000000000000000000000000000000000
54+
5dec020000000000000000000000000000000000000000000000000000000000
55+
5d01000004000000000000000000000000000000000000000000000000000000
56+
5d01000000000000000000000000000000000000000000000000000000000000
57+
5d01000004000000000000000000000000000000000000000000000000000000
58+
5d01000000000000000000000000000000000000000000000000000000000000
59+
5d01000005000000000000000000000000000000000000000000000000000000
60+
5d01000005040000000000000000000000000000000000000000000000000000
61+
5d01000004000000000000000000000000000000000000000000000000000000
62+
5d01000000000000000000000000000000000000000000000000000000000000
63+
5d01000006000000000000000000000000000000000000000000000000000000
64+
5d01000000000000000000000000000000000000000000000000000000000000
65+
5dec020000000000000000000000000000000000000000000000000000000000
66+
5d01000004000000000000000000000000000000000000000000000000000000
67+
5d01000000000000000000000000000000000000000000000000000000000000
68+
5d01000007000000000000000000000000000000000000000000000000000000
69+
5d01000000000000000000000000000000000000000000000000000000000000
70+
5d01000004000000000000000000000000000000000000000000000000000000
71+
5d01000000000000000000000000000000000000000000000000000000000000
72+
5d01000008000000000000000000000000000000000000000000000000000000
73+
5d01000000000000000000000000000000000000000000000000000000000000
74+
5d01000004000000000000000000000000000000000000000000000000000000
75+
5d01000000000000000000000000000000000000000000000000000000000000
76+
5dec020000000000000000000000000000000000000000000000000000000000
77+
5d01000009000000000000000000000000000000000000000000000000000000
78+
5d01000000000000000000000000000000000000000000000000000000000000
79+
5d01000004000000000000000000000000000000000000000000000000000000
80+
5d01000000000000000000000000000000000000000000000000000000000000
81+
5dec020000000000000000000000000000000000000000000000000000000000
82+
5d01000027000000000000000000000000000000000000000000000000000000
83+
5d01000000000000000000000000000000000000000000000000000000000000
84+
5d01000004000000000000000000000000000000000000000000000000000000
85+
5d01000000000000000000000000000000000000000000000000000000000000
86+
5dec020000000000000000000000000000000000000000000000000000000000
87+
5d01020000000000000000000000000000000000000000000000000000000000
88+
5d01020030000000000000000000000000000000000000000000000000000000
89+
5d01020000000000000000000000000000000000000000000000000000000000
90+
5d01000000000000000000000000000000000000000000000000000000000000
91+
5d01000028000000000000000000000000000000000000000000000000000000
92+
5d01000000000000000000000000000000000000000000000000000000000000
93+
5dec020000000000000000000000000000000000000000000000000000000000
94+
5d01000028000000000000000000000000000000000000000000000000000000
95+
5d01000000000000000000000000000000000000000000000000000000000000
96+
5d01010000000000000000000000000000000000000000000000000000000000

swing/example/usb2.pcap

726 KB
Binary file not shown.

swing/pom.xml

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>com.tushuoit</groupId>
8+
<artifactId>jiayutools</artifactId>
9+
<version>1.0-SNAPSHOT</version>
10+
11+
<properties>
12+
<maven.compiler.source>22</maven.compiler.source>
13+
<maven.compiler.target>11</maven.compiler.target>
14+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15+
</properties>
16+
<dependencies>
17+
<dependency>
18+
<groupId>com.formdev</groupId>
19+
<artifactId>flatlaf</artifactId>
20+
<version>3.5</version>
21+
<!-- <scope>runtime</scope>-->
22+
</dependency>
23+
24+
<dependency>
25+
<groupId>com.google.guava</groupId>
26+
<artifactId>guava</artifactId>
27+
<version>32.0.0-android</version>
28+
</dependency>
29+
<dependency>
30+
<groupId>org.apache.commons</groupId>
31+
<artifactId>commons-imaging</artifactId>
32+
<version>1.0-alpha1</version>
33+
</dependency>
34+
<dependency>
35+
<groupId>io.kaitai</groupId>
36+
<artifactId>kaitai-struct-runtime</artifactId>
37+
<version>0.8</version>
38+
</dependency>
39+
<dependency>
40+
<groupId>com.google.code.gson</groupId>
41+
<artifactId>gson</artifactId>
42+
<version>2.8.9</version>
43+
</dependency>
44+
<dependency>
45+
<groupId>net.lingala.zip4j</groupId>
46+
<artifactId>zip4j</artifactId>
47+
<version>2.11.3</version>
48+
</dependency>
49+
<dependency>
50+
<groupId>org.gizmore.jpk</groupId>
51+
<artifactId>jpk</artifactId>
52+
<version>1.11.0</version>
53+
<scope>system</scope>
54+
<systemPath>${project.basedir}/lib/JPK_406.jar</systemPath>
55+
</dependency>
56+
</dependencies>
57+
<build>
58+
<plugins>
59+
<plugin>
60+
<groupId>org.apache.maven.plugins</groupId>
61+
<artifactId>maven-compiler-plugin</artifactId>
62+
<configuration>
63+
<source>22</source>
64+
<target>17</target>
65+
<release>11</release>
66+
</configuration>
67+
</plugin>
68+
<plugin>
69+
<groupId>org.apache.maven.plugins</groupId>
70+
<artifactId>maven-shade-plugin</artifactId>
71+
<version>3.6.0</version>
72+
<executions>
73+
<execution>
74+
<phase>package</phase>
75+
<goals>
76+
<goal>shade</goal>
77+
</goals>
78+
<configuration>
79+
<transformers>
80+
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
81+
<mainClass>com.tushuoit.Main</mainClass>
82+
</transformer>
83+
</transformers>
84+
</configuration>
85+
</execution>
86+
</executions>
87+
</plugin>
88+
</plugins>
89+
</build>
90+
</project>
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
package com.tushuoit;
2+
3+
public class ButtonConfig {
4+
private final String title;
5+
private final boolean isEncode; // true 表示 encode,false 表示 decode
6+
private final EncoderDecoderAction action;
7+
8+
public ButtonConfig(String title, boolean isEncode, EncoderDecoderAction action) {
9+
this.title = title;
10+
this.isEncode = isEncode;
11+
this.action = action;
12+
}
13+
14+
public String getTitle() {
15+
return title;
16+
}
17+
18+
public boolean isEncode() {
19+
return isEncode;
20+
}
21+
22+
public EncoderDecoderAction getAction() {
23+
return action;
24+
}
25+
26+
// Functional interface for defining encode/decode actions
27+
@FunctionalInterface
28+
public interface EncoderDecoderAction {
29+
String execute(String text, String key);
30+
}
31+
}

0 commit comments

Comments
 (0)