setSize is not setPreferredSize
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user