Exemple #1
0
 public void createWorld() {
   world = new World(getSize());
   world.addObserver(this);
 }
Exemple #2
0
 @Override
 public void componentResized(ComponentEvent arg0) {
   if (world == null) return;
   world.resize(getSize());
 }