Explorar el Código

forgot to make the gallery observe the model

tarfeef101 hace 7 años
padre
commit
e8a6274d7b
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      assignments/a3/src/main/java/Gallery.java

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

@@ -18,6 +18,7 @@ public class Gallery extends JPanel implements Observer
     this.items = new ArrayList();
     reList();
     reFill(3);
+    model.addObserver(this);
   }
 
   /**