Browse Source

trying to set menubar size

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

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

@@ -13,6 +13,7 @@ public class Menubar extends JPanel implements Observer
     // Hook up this observer so that it will be notified when the model
     // changes.
     this.model = model;
+    this.setPreferredSize(new Dimension(20, 300));
     model.addObserver(this);
   }