Dimension d = player.desktopScrollPane.getViewportSize();
Dimension d = appClass.desktopScrollPane.getViewportSize();
  public Dimension getPreferredSize() {    Dimension d = player.desktopScrollPane.getViewportSize();    Dimension sz = new Dimension(rfb.framebufferWidth, rfb.framebufferHeight);    if (d.width > sz.width)      sz.width = d.width;    if (d.height > sz.height)      sz.height = d.height;    return sz;  }