|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.atlanticbb.tantlinger.ui.UIUtils
public class UIUtils
A collection of static UI helper methods.
Field Summary | |
---|---|
static java.lang.String |
MISC
Misc icons that are unsized |
static java.lang.String |
X16
The 16 x 16 icon package |
static java.lang.String |
X24
The 24 x 24 icon package |
static java.lang.String |
X32
The 32 x 32 icon package |
static java.lang.String |
X48
The 48 x 48 icon package |
Constructor Summary | |
---|---|
UIUtils()
|
Method Summary | |
---|---|
static javax.swing.JMenuItem |
addMenuItem(javax.swing.JMenu menu,
javax.swing.Action action)
|
static javax.swing.JMenuItem |
addMenuItem(javax.swing.JPopupMenu menu,
javax.swing.Action action)
|
static javax.swing.AbstractButton |
addToolBarButton(javax.swing.JToolBar tb,
javax.swing.AbstractButton button)
|
static javax.swing.AbstractButton |
addToolBarButton(javax.swing.JToolBar tb,
javax.swing.AbstractButton button,
boolean focusable,
boolean showIconOnly)
|
static javax.swing.AbstractButton |
addToolBarButton(javax.swing.JToolBar tb,
javax.swing.Action a)
|
static javax.swing.AbstractButton |
addToolBarButton(javax.swing.JToolBar tb,
javax.swing.Action a,
boolean focusable,
boolean showIconOnly)
|
static javax.swing.ImageIcon |
createImageIcon(java.lang.String path)
Create an ImageIcon from the image at the specified path |
static javax.swing.ImageIcon |
getIcon(java.lang.String path)
Gets the icon at the specified path |
static javax.swing.ImageIcon |
getIcon(java.lang.String _package,
java.lang.String iconName)
Gets the icon in the specified package with the specified name. |
static void |
showError(java.awt.Component owner,
java.lang.String msg)
Shows an error message dialog |
static void |
showError(java.awt.Component owner,
java.lang.String title,
java.lang.String msg)
Shows an error message dialog |
static void |
showError(java.awt.Component c,
java.lang.Throwable ex)
|
static void |
showError(java.awt.Dialog owner,
java.lang.String title,
java.lang.Throwable th)
Shows an exception dialog |
static void |
showError(java.awt.Dialog owner,
java.lang.Throwable th)
Shows an exception dialog |
static void |
showError(java.awt.Frame owner,
java.lang.String title,
java.lang.Throwable th)
Shows an exception dialog |
static void |
showError(java.awt.Frame owner,
java.lang.Throwable th)
Shows an exception dialog |
static void |
showError(java.lang.String msg)
Shows an error message dialog |
static void |
showInfo(java.awt.Component owner,
java.lang.String msg)
Shows an info dialog |
static void |
showInfo(java.awt.Component owner,
java.lang.String title,
java.lang.String msg)
Shows an info dialog |
static void |
showInfo(java.lang.String msg)
Shows an info dialog |
static void |
showWarning(java.awt.Component owner,
java.lang.String msg)
Shows a warning dialog |
static void |
showWarning(java.awt.Component owner,
java.lang.String title,
java.lang.String msg)
Shows a warning dialog |
static void |
showWarning(java.lang.String msg)
Shows a warning dialog |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String X16
public static final java.lang.String X24
public static final java.lang.String X32
public static final java.lang.String X48
public static final java.lang.String MISC
Constructor Detail |
---|
public UIUtils()
Method Detail |
---|
public static javax.swing.ImageIcon getIcon(java.lang.String _package, java.lang.String iconName)
_package
- iconName
-
public static javax.swing.ImageIcon getIcon(java.lang.String path)
path
- The path of the icon
public static javax.swing.ImageIcon createImageIcon(java.lang.String path)
path
- The path of the image
public static void showError(java.lang.String msg)
msg
- public static void showError(java.awt.Component c, java.lang.Throwable ex)
public static void showError(java.awt.Component owner, java.lang.String msg)
owner
- msg
- public static void showError(java.awt.Component owner, java.lang.String title, java.lang.String msg)
owner
- title
- msg
- public static void showError(java.awt.Frame owner, java.lang.String title, java.lang.Throwable th)
owner
- title
- th
- public static void showError(java.awt.Frame owner, java.lang.Throwable th)
owner
- th
- public static void showError(java.awt.Dialog owner, java.lang.String title, java.lang.Throwable th)
owner
- title
- th
- public static void showError(java.awt.Dialog owner, java.lang.Throwable th)
owner
- th
- public static void showWarning(java.awt.Component owner, java.lang.String title, java.lang.String msg)
owner
- title
- msg
- public static void showWarning(java.awt.Component owner, java.lang.String msg)
owner
- msg
- public static void showWarning(java.lang.String msg)
msg
- public static void showInfo(java.awt.Component owner, java.lang.String title, java.lang.String msg)
owner
- title
- msg
- public static void showInfo(java.awt.Component owner, java.lang.String msg)
owner
- msg
- public static void showInfo(java.lang.String msg)
msg
- public static javax.swing.AbstractButton addToolBarButton(javax.swing.JToolBar tb, javax.swing.Action a)
public static javax.swing.AbstractButton addToolBarButton(javax.swing.JToolBar tb, javax.swing.Action a, boolean focusable, boolean showIconOnly)
public static javax.swing.AbstractButton addToolBarButton(javax.swing.JToolBar tb, javax.swing.AbstractButton button)
public static javax.swing.AbstractButton addToolBarButton(javax.swing.JToolBar tb, javax.swing.AbstractButton button, boolean focusable, boolean showIconOnly)
public static javax.swing.JMenuItem addMenuItem(javax.swing.JMenu menu, javax.swing.Action action)
public static javax.swing.JMenuItem addMenuItem(javax.swing.JPopupMenu menu, javax.swing.Action action)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |