窗口居中启动
This commit is contained in:
@@ -32,6 +32,8 @@ public class ImageDotMarker extends JFrame {
|
||||
setSize(1200, 800);
|
||||
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
setLayout(new BorderLayout());
|
||||
// 设置窗口在屏幕中心显示
|
||||
setLocationRelativeTo(null);
|
||||
|
||||
// 创建菜单栏
|
||||
createMenuBar();
|
||||
|
||||
Reference in New Issue
Block a user