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