Dimension d = player.desktopScrollPane.getViewportSize();
Dimension d = appClass.desktopScrollPane.getViewportSize();
  Point getImageOrigin() {    int x = 0, y = 0;    Dimension d = player.desktopScrollPane.getViewportSize();    if (rfb.framebufferWidth < d.width)      x = d.width / 2 - rfb.framebufferWidth / 2;    if (rfb.framebufferHeight < d.height)      y = d.height / 2 - rfb.framebufferHeight / 2;    return new Point(x, y);  }