Create Run.java

This commit is contained in:
xixu-me committed 2024-06-18 16:19:38 +08:00
1 parent 7fbf90fee5
commit 5eca47ef1a
1 file changed
+22
+22
View File
@@ -0,0 +1,22 @@
package me.xixu;
import java.awt.EventQueue;
public class Run {
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
// 实例化主界面
MainInterface frame = new MainInterface();
// 显示主界面
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
}