public class GuiUtils extends Object
| Constructor and Description |
|---|
GuiUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
centerRelativeTo(Component comp,
Component parent) |
static Frame |
getActiveFrame() |
static JFileChooser |
getFileChooser() |
static Component |
getParentOfType(Component component,
Class parentClass)
Calculates position within the top parent of given component
|
static void |
init(Component parent) |
static void |
showErrorMessage(String msg)
Displays dialog with specified error message.
|
static void |
showInfoMessage(String msg)
Displays dialog with specified information.
|
static int |
showQuestionBox(String msg,
boolean hasCancelButton) |
static int |
showQuestionBox(String msg,
String title,
boolean hasCancelButton,
Icon icon) |
static void |
showWarningMessage(String msg)
Displays dialog with specified warning message.
|
static int |
showWarningQuestionBox(String msg,
boolean hasCancelButton) |
public static void init(Component parent)
public static void showErrorMessage(String msg)
msg - public static void showWarningMessage(String msg)
msg - public static void showInfoMessage(String msg)
msg - public static int showQuestionBox(String msg, String title, boolean hasCancelButton, Icon icon)
public static int showQuestionBox(String msg, boolean hasCancelButton)
public static int showWarningQuestionBox(String msg, boolean hasCancelButton)
public static JFileChooser getFileChooser()
public static Frame getActiveFrame()
Copyright © 2022 WSO2. All rights reserved.