瀏覽代碼

changing background colours

tarfeef101 6 年之前
父節點
當前提交
dcfe934fc3
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      assignments/a3/src/main/java/Controls.java
  2. 1 1
      assignments/a3/src/main/java/Gallery.java

+ 1 - 1
assignments/a3/src/main/java/Controls.java

@@ -52,7 +52,7 @@ public class Controls extends JPanel implements Observer
   {
     this.model = model;
     this.customlistener = new customListener();
-    this.setBackground(Color.cyan);
+    this.setBackground(new Color(255, 75, 50));
     this.setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
     this.setPreferredSize(new Dimension(1280,75));
     this.setMinimumSize(new Dimension(320, 75));

+ 1 - 1
assignments/a3/src/main/java/Gallery.java

@@ -16,7 +16,7 @@ public class Gallery extends JPanel implements Observer
     // changes.
     this.model = model;
     this.setLayout(new FlowLayout(10));
-    this.setBackground(Color.white);
+    this.setBackground(Color.cyan);
     this.items = new ArrayList();
     reList();
     reFill();