setSize is not setPreferredSize

This commit is contained in:
LinlyBoi
2023-03-07 18:15:15 +02:00
parent ae7e77a2cf
commit 93543f744b

View File

@@ -14,7 +14,7 @@ public class Sign extends JFrame {
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setLayout(new GridLayout(4, 1)); this.setLayout(new GridLayout(4, 1));
this.setPreferredSize(new Dimension(600, 600)); this.setPreferredSize(new Dimension(600, 600));
this.setSize(600, 600); this.setSize(175, 600);
this.setLocationRelativeTo(null); this.setLocationRelativeTo(null);
this.setVisible(true); this.setVisible(true);
this.getContentPane().setBackground(Color.BLACK); this.getContentPane().setBackground(Color.BLACK);