Browse Source

set preferred size of colour panel

tarfeef101 6 năm trước cách đây
mục cha
commit
624152a82b
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      assignments/a2/src/main/java/Sidepane.java

+ 1 - 0
assignments/a2/src/main/java/Sidepane.java

@@ -46,6 +46,7 @@ class Colours extends JPanel
   public Colours()
   {
     this.setLayout(new GridLayout(0, 2));
+    this.setPreferredSize(new Dimension(100, 225));
     red = new JButton("Red");
     green = new JButton("Green");
     blue = new JButton("Blue");