소스 검색

width and height were swapped

tarfeef101 6 년 전
부모
커밋
a55e5d204c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);
   }