Center launch frame on screen

This commit is contained in:
extio-de
2025-07-28 21:57:39 +02:00
parent 7a9d330c72
commit 8b2d39913d
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@@ -124,7 +124,6 @@ public class LaunchFrame extends JFrame {
public LaunchFrame() {
this.setTitle("LM Launcher");
this.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
this.setBounds(100, 100, 400, 400);
this.setPreferredSize(new Dimension(650, 650));
this.contentPane = new JPanel();
this.contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
@@ -539,6 +538,7 @@ public class LaunchFrame extends JFrame {
}
this.pack();
this.setLocationRelativeTo(null);
this.repaint();
this.splitPane.setDividerLocation(0.33);
this.splitPane_1.setDividerLocation(0.66);