imx.loggui.lib
Class Util

java.lang.Object
  extended by 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()
           
 
Method Summary
static java.awt.Insets getInsets()
          The inset methods returns default sized insets for all GUI views that use GridBagLayout.
static java.awt.Insets getInsetsBottom()
           
static java.awt.Insets getInsetsBottomBoth()
           
static java.awt.Insets getInsetsBottomLeft()
           
static java.awt.Insets getInsetsBottomRight()
           
static java.awt.Insets getInsetsLeft()
           
static java.awt.Insets getInsetsRight()
           
static java.awt.Insets getInsetsTop()
           
static java.awt.Insets getInsetsTopBoth()
           
static java.awt.Insets getInsetsTopLeft()
           
static java.awt.Insets getInsetsTopRight()
           
static void reportError(java.lang.Exception e)
          use this method to report GUI errors to the user.
static void reportError(java.lang.String message)
           
static void reportError(java.lang.String title, java.lang.Exception e)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

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()