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.
25 lines
647 B
25 lines
647 B
package mathlearning;
|
|
|
|
import mathlearning.service.UserService;
|
|
import mathlearning.ui.LoginFrame;
|
|
|
|
import javax.swing.*;
|
|
|
|
public class App {
|
|
public static void main(String[] args) {
|
|
// 设置UI风格
|
|
try {
|
|
UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
}
|
|
|
|
// 启动应用程序
|
|
SwingUtilities.invokeLater(() -> {
|
|
UserService userService = new UserService();
|
|
LoginFrame loginFrame = new LoginFrame(userService);
|
|
loginFrame.setVisible(true);
|
|
});
|
|
}
|
|
}
|