张世豪
12 小时以前 ed6936545d20cc490145d2936cee4387be2afd53
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package zhuye;
 
import javax.swing.JFrame;
import javax.swing.SwingUtilities;
import udpdell.UDPServer;
 
public class ShouyeLauncher {
    public static void main(String[] args) {
        SwingUtilities.invokeLater(() -> {
            System.out.println("Starting Shouye via Launcher...");
            JFrame frame = new JFrame("AutoMow - 首页");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setSize(400, 800);
            frame.setLocationRelativeTo(null);
            
            Shouye shouye = new Shouye();
            frame.add(shouye);
            
            frame.setVisible(true);
            UDPServer.startAsync();
        });
    }
}