Explorar o código

width and height were swapped

tarfeef101 %!s(int64=6) %!d(string=hai) anos
pai
achega
a55e5d204c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      assignments/a2/src/main/java/Menubar.java

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

@@ -13,7 +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));
+    this.setPreferredSize(new Dimension(300, 50));
     model.addObserver(this);
   }