窗口居中启动

This commit is contained in:
2025-10-16 01:42:08 +08:00
parent 8db61b11a0
commit 23827478ff
@@ -32,6 +32,8 @@ public class ImageDotMarker extends JFrame {
setSize(1200, 800);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setLayout(new BorderLayout());
// 设置窗口在屏幕中心显示
setLocationRelativeTo(null);
// 创建菜单栏
createMenuBar();