Create Run.java
This commit is contained in:
1 parent
7fbf90fee5
commit
5eca47ef1a
1 file changed
+22
@@ -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();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user