javalib.worldcanvas
Class AppletCanvas.Refresh

java.lang.Object
  extended by javalib.worldcanvas.AppletCanvas.Refresh
Enclosing class:
AppletCanvas

public static class AppletCanvas.Refresh
extends Object

Class Refresh encapsulates methods for graphics refresh.

Class Refresh cannot be instantiated.

Since:
2.3
Version:
2.6.0c
Author:
Richard Rasala

Method Summary
static void packParentWindow(JComponent component)
          Revalidates the given component, packs its parent window, and then repaints the component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

packParentWindow

public static void packParentWindow(JComponent component)

Revalidates the given component, packs its parent window, and then repaints the component.

As of 2.3.3, prevents indirect recursive calls to this method that attempt to pack the same window object.

As of 2.6.0c, makes the parent window invisible, then packs, and then makes the parent window visible.

Parameters:
component - the component whose parent window should be packed