public Dimension getPreferredSize() {
      int w = 0, h = 0;
      if (_scene != null) {
        w = (int)(_scale*_scene.getWidth());
        h = (int)(_scale*_scene.getHeight());
      }
      return new Dimension(w, h);
    }