com.myjavaworld.gui
Class GUIUtil
java.lang.Object
com.myjavaworld.gui.GUIUtil
public class GUIUtil
- extends Object
An utility class for user interfaces related things.
- Version:
- 2.0
- Author:
- Sai Pullabhotla, psai [at] jMethods [dot] com
Method Summary |
static Point |
getCenterPointRelativeToScreen(Dimension size)
Gives the center point relative to the user's screen, given the size of
some component. |
static int |
getDeleteKey()
|
static KeyStroke |
getHelpKeyStroke()
|
static String |
htmlFormat(String input)
|
static boolean |
isSystemLookAndFeel()
|
static int |
showConfirmation(Component parent,
String message)
|
static int |
showConfirmation(Component parent,
String message,
boolean format)
|
static int |
showConfirmation(Component parent,
String title,
String message)
|
static int |
showConfirmation(Component parent,
String title,
String message,
boolean format)
|
static void |
showError(Component parent,
String error)
|
static void |
showError(Component parent,
String title,
String error)
|
static void |
showError(Component parent,
String title,
String error,
boolean format)
|
static void |
showError(Component parent,
String title,
Throwable t)
|
static void |
showError(Component parent,
Throwable t)
|
static void |
showInformation(Component parent,
String info)
|
static void |
showInformation(Component parent,
String info,
boolean format)
|
static void |
showInformation(Component parent,
String title,
String info)
|
static void |
showInformation(Component parent,
String title,
String info,
boolean format)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ACCELERATOR_MASK
public static final int ACCELERATOR_MASK
GUIUtil
public GUIUtil()
getCenterPointRelativeToScreen
public static Point getCenterPointRelativeToScreen(Dimension size)
- Gives the center point relative to the user's screen, given the size of
some component.
- Parameters:
size
- Size of the component that is to be centered.
- Returns:
- Location of the component which makes the component to display in
the center of the screen.
isSystemLookAndFeel
public static boolean isSystemLookAndFeel()
getHelpKeyStroke
public static KeyStroke getHelpKeyStroke()
getDeleteKey
public static int getDeleteKey()
showInformation
public static void showInformation(Component parent,
String info)
showInformation
public static void showInformation(Component parent,
String info,
boolean format)
showInformation
public static void showInformation(Component parent,
String title,
String info)
showInformation
public static void showInformation(Component parent,
String title,
String info,
boolean format)
showConfirmation
public static int showConfirmation(Component parent,
String message)
showConfirmation
public static int showConfirmation(Component parent,
String message,
boolean format)
showConfirmation
public static int showConfirmation(Component parent,
String title,
String message)
showConfirmation
public static int showConfirmation(Component parent,
String title,
String message,
boolean format)
showError
public static void showError(Component parent,
String error)
showError
public static void showError(Component parent,
String title,
String error)
showError
public static void showError(Component parent,
String title,
String error,
boolean format)
showError
public static void showError(Component parent,
Throwable t)
showError
public static void showError(Component parent,
String title,
Throwable t)
htmlFormat
public static String htmlFormat(String input)
Copyright © 2000-2012 jMethods, Inc.. All Rights Reserved.