imx.loggui.lib
Class Util
java.lang.Object
imx.loggui.lib.Util
public class Util
- extends java.lang.Object
This class contains some global useful static methods, which found no
home elsewhere.
|
Constructor Summary |
Util()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Util
public Util()
reportError
public static void reportError(java.lang.Exception e)
- use this method to report GUI errors to the user. Its intention is to
have one central place for error reporting to the user, which later can be changed
or improved. It shows a message box with the error message and prints the stack
trace of the Exception to stderr.
reportError
public static void reportError(java.lang.String title,
java.lang.Exception e)
reportError
public static void reportError(java.lang.String message)
getInsets
public static java.awt.Insets getInsets()
- The inset methods returns default sized insets for all GUI views that
use
GridBagLayout.
As an example if you configure the GridBagConstraints for an element
in the bottom right corner of a GridBagLayout you would give it
getInsetsBottomRight() insets
getInsetsTop
public static java.awt.Insets getInsetsTop()
getInsetsTopLeft
public static java.awt.Insets getInsetsTopLeft()
getInsetsTopRight
public static java.awt.Insets getInsetsTopRight()
getInsetsTopBoth
public static java.awt.Insets getInsetsTopBoth()
getInsetsBottom
public static java.awt.Insets getInsetsBottom()
getInsetsBottomLeft
public static java.awt.Insets getInsetsBottomLeft()
getInsetsBottomRight
public static java.awt.Insets getInsetsBottomRight()
getInsetsBottomBoth
public static java.awt.Insets getInsetsBottomBoth()
getInsetsLeft
public static java.awt.Insets getInsetsLeft()
getInsetsRight
public static java.awt.Insets getInsetsRight()