public class CoreSwingUtils
extends java.lang.Object
| Constructor and Description |
|---|
CoreSwingUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.awt.Point |
getMousePoint(java.awt.Component component)
Returns mouse point relative to specified component.
|
static java.awt.Window |
getWindowAncestor(java.awt.Component component)
Returns window ancestor for specified component or null if it doesn't exist.
|
static void |
invokeAndWait(java.lang.Runnable runnable)
Will invoke the specified action in EDT in case it is called from non-EDT thread.
|
static void |
invokeAndWaitSafely(java.lang.Runnable runnable)
Will invoke the specified action in EDT in case it is called from non-EDT thread.
|
static void |
invokeLater(java.lang.Runnable runnable)
Will invoke the specified action later in EDT in case it is called from non-EDT thread.
|
static boolean |
isFullScreen(java.awt.Component component)
Returns whether or not specified component is placed on a fullscreen window.
|
public static java.awt.Window getWindowAncestor(java.awt.Component component)
component - component to processpublic static boolean isFullScreen(java.awt.Component component)
component - component to processpublic static java.awt.Point getMousePoint(java.awt.Component component)
component - component to processpublic static void invokeLater(java.lang.Runnable runnable)
runnable - runnablepublic static void invokeAndWait(java.lang.Runnable runnable)
throws java.lang.InterruptedException,
java.lang.reflect.InvocationTargetException
runnable - runnablejava.lang.InterruptedException - if we're interrupted while waiting for the EDT to finish excecuting doRun.run()java.lang.reflect.InvocationTargetException - if an exception is thrown while running doRunpublic static void invokeAndWaitSafely(java.lang.Runnable runnable)
runnable - runnable