Center launch frame on screen
This commit is contained in:
BIN
lm-launcher.jar
BIN
lm-launcher.jar
Binary file not shown.
@@ -124,7 +124,6 @@ public class LaunchFrame extends JFrame {
|
|||||||
public LaunchFrame() {
|
public LaunchFrame() {
|
||||||
this.setTitle("LM Launcher");
|
this.setTitle("LM Launcher");
|
||||||
this.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
|
this.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
|
||||||
this.setBounds(100, 100, 400, 400);
|
|
||||||
this.setPreferredSize(new Dimension(650, 650));
|
this.setPreferredSize(new Dimension(650, 650));
|
||||||
this.contentPane = new JPanel();
|
this.contentPane = new JPanel();
|
||||||
this.contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
|
this.contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
|
||||||
@@ -539,6 +538,7 @@ public class LaunchFrame extends JFrame {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.pack();
|
this.pack();
|
||||||
|
this.setLocationRelativeTo(null);
|
||||||
this.repaint();
|
this.repaint();
|
||||||
this.splitPane.setDividerLocation(0.33);
|
this.splitPane.setDividerLocation(0.33);
|
||||||
this.splitPane_1.setDividerLocation(0.66);
|
this.splitPane_1.setDividerLocation(0.66);
|
||||||
|
|||||||
Reference in New Issue
Block a user