public class GuiUtil extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
GuiUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
centerContainer(Container frame)
Center a frame on the screen.
|
static Point |
chooseChildLocation(Container child,
Container parent) |
static void |
error(String message) |
static void |
error(String message,
Throwable e) |
static JTextField |
fileBrowsePanel(Container container,
ActionListener h)
Build a standardized file browse field+button.
|
static boolean |
testDir(String filename) |
static boolean |
testFile(String filename) |
public static JTextField fileBrowsePanel(Container container, ActionListener h)
container
- h
- actionListener that should be wired to a file browser.public static void centerContainer(Container frame)
frame
- public static Point chooseChildLocation(Container child, Container parent)
public static void error(String message)
message
- public static boolean testDir(String filename)
text
- public static boolean testFile(String filename)
filename
- basecode.util.FileTools#checkPathIsReadableFile(String)
Copyright © 2002-2013 UBC Centre for High-Throughput Biology. All Rights Reserved.