public final class GuiUtils
extends java.lang.Object
Copyright (C)1996,1998 by Jef Poskanzer
Visit the ACME Labs Java page for up-to-date versions of this and other
fine Java utilities: http://www.acme.com/java/
Constructor and Description |
---|
GuiUtils() |
Modifier and Type | Method and Description |
---|---|
static java.awt.Image |
brokenIcon(java.awt.Component comp) |
static java.awt.Image |
busyIcon(java.awt.Component comp) |
static void |
drawImage(java.awt.Graphics graphics,
java.awt.Component comp,
java.awt.Image image)
Draw a centered image.
|
static java.awt.Image |
errorIcon(java.awt.Component comp) |
static java.awt.Component |
getTopParent(java.awt.Component comp)
Returns the top available parent of a component.
|
static java.awt.Image |
noticeIcon(java.awt.Component comp) |
static void |
packWindow(java.awt.Component comp)
Calls pack() on the nearest parent that's a Window.
|
static java.awt.Image |
qmarkIcon(java.awt.Component comp) |
static java.awt.Image |
warningIcon(java.awt.Component comp) |
public static java.awt.Component getTopParent(java.awt.Component comp)
public static void packWindow(java.awt.Component comp)
public static java.awt.Image noticeIcon(java.awt.Component comp)
public static java.awt.Image warningIcon(java.awt.Component comp)
public static java.awt.Image errorIcon(java.awt.Component comp)
public static java.awt.Image busyIcon(java.awt.Component comp)
public static java.awt.Image qmarkIcon(java.awt.Component comp)
public static java.awt.Image brokenIcon(java.awt.Component comp)
public static void drawImage(java.awt.Graphics graphics, java.awt.Component comp, java.awt.Image image)
"