You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
713 B

package com.WR.StudentMS.view;
import javax.swing.UIManager;
import java.awt.EventQueue;
public class MainApp {
public static void main(String[] args) {
// 设置Java Swing的look and feel
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (Exception e) {
e.printStackTrace();
}
// 在事件分派线程中创建和显示GUI
EventQueue.invokeLater(new Runnable() {
@Override
public void run() {
LoginFrame loginFrame = new LoginFrame("用户登录", 400, 230);
loginFrame.setVisible(true);
}
});
}
}