public synchronized void update(final AbstractShape shape) {
   Rectangle2D bounds = shape.getPath().getBounds();
   panel.reset((int) bounds.getWidth(), (int) bounds.getHeight());
   panel.display(shape);
   Input.waitForSpace();
 }
 public void prepare() {
   panel.setVisible(true);
 }