|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.base.apps.util.view.swing.SwingUtil
public class SwingUtil
Utility Swing methods.
| Method Summary | |
|---|---|
static void |
collapse(JTree tree,
TreePath path)
|
static void |
collapseAll(JTree tree)
|
static void |
display(JFrame frame,
boolean exitOnClose)
Packs, centers, and shows this frame, optionally adding close operation. |
static void |
displayErrorDialog(String errMsg,
Throwable t,
String title)
Displays an error dialog with the given message, title, and a stacktrace of the error, if passed. |
static String |
encodeColor(Color c)
|
static void |
expand(JTree tree,
TreePath path)
|
static void |
expandAll(JTree tree)
|
protected static void |
flexTree(JTree tree,
TreePath parent,
boolean expand)
|
static Color |
makeTransparent(Color c,
float t)
Returns a transparent version of the specified Color. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void display(JFrame frame,
boolean exitOnClose)
exitOnClose - true if frame should exit on close.
public static void displayErrorDialog(String errMsg,
Throwable t,
String title)
errMsg - The error message.t - An option error, for which a stacktrace will be displayed.title - The title on the dialog.public static String encodeColor(Color c)
public static void collapse(JTree tree,
TreePath path)
public static void collapseAll(JTree tree)
public static void expand(JTree tree,
TreePath path)
public static void expandAll(JTree tree)
protected static void flexTree(JTree tree,
TreePath parent,
boolean expand)
public static Color makeTransparent(Color c,
float t)
Color.
c - The given color.t - The degree of transparency, between 0.0 and 1.0 inclusive.
|
Please visit Base Apps, hosted on Sourceforge.net. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||