public final class AwtUtils extends Object
| Constructor and Description |
|---|
AwtUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Component |
getRootJDialog(Component component)
Gets the root JDialog from the given Component Object.
|
static Component |
getRootJFrame(Component component)
Gets the root JFrame from the given Component Object.
|
static Component |
getRootParent(Component component)
Gets the root parent from the given Component Object.
|
static Cursor |
newInvisibleCursor()
Creates an invisible cursor.
|
static void |
setIconImage(String resourceName,
Window window)
Sets the icon image from the given resource name and add it to the given window object.
|
public static Component getRootJDialog(Component component)
component - The Component to find the root JDialog.public static Component getRootJFrame(Component component)
component - The Component to find the root JFrame.public static Component getRootParent(Component component)
component - The Component to find the root parent.public static Cursor newInvisibleCursor()
public static void setIconImage(String resourceName, Window window) throws IOException
resourceName - The name from the resource. This includes the absolute path to the image icon from
the classpath.window - the window in which to set the icon image.IOException - Signals that an I/O exception has occurred.Copyright © 2007–2015 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.