public class AWTUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
askForConfirmationOnMouseScreen(String title,
String question) |
static void |
centerOnMouseScreen(Window window)
Center JFrame position on the screen where the mouse is located.
|
static void |
centerOnScreen(int screen,
JFrame frame)
Center JFrame position on a specific screen in a multi-screen setup.
|
static int |
getMousePointerScreenDeviceIndex()
Determine screen index for the screen the mouse pointer is currently located on.
|
static void |
showInfoDialogOnMouseScreen(String title,
String text)
Display some informational message.
|
static void |
showOnScreen(int screen,
JFrame frame,
int x,
int y)
Set JFrame location relative to a specific screen in a multi-screen setup.
|
public static void showOnScreen(int screen,
JFrame frame,
int x,
int y)
screen - frame - x - coordinate relative to the given screeny - coordinate relative to the given screenpublic static void centerOnScreen(int screen,
JFrame frame)
screen - frame - public static void centerOnMouseScreen(Window window)
window - public static boolean askForConfirmationOnMouseScreen(String title, String question)
title - question - public static void showInfoDialogOnMouseScreen(String title, String text)
title - text - public static int getMousePointerScreenDeviceIndex()
RuntimeException - if no screen could be foundCopyright © 2016 Github jjYBdx4IL Projects. All rights reserved.