public abstract class Aspect extends Object
| Constructor and Description |
|---|
Aspect() |
| Modifier and Type | Method and Description |
|---|---|
static void |
Catch(Exception e) |
static void |
Catch(Exception e,
String message) |
static void |
CatchQuit(Exception e) |
static void |
CatchQuit(Exception e,
int code) |
static void |
CatchQuit(Exception e,
String message) |
static void |
center(Component component)
Centers the component on the screen.
|
static void |
center(Component parent,
Component window)
Centers the window on the parent.
|
static boolean |
delete(File file) |
static String |
encodeEntities(String s)
Replace the four characters that are entities in XML, that is, '&', '<',
'>', and '"'.
|
static String |
fixSlashes(String s) |
static void |
setLookAndFeel()
Sets the look and feel to the system look and feel.
|
static boolean |
setLookAndFeel(String lookAndFeel)
Attempts to set the look and feel to the named look and feel.
|
public static void setLookAndFeel()
public static boolean setLookAndFeel(String lookAndFeel)
lookAndFeel - String The name of the look and feel to set.public static void center(Component component)
public static void center(Component parent, Component window)
parent - Component The background window.window - Component The window to center.public static String encodeEntities(String s)
public static boolean delete(File file)
public static void Catch(Exception e)
public static void CatchQuit(Exception e)
public static void CatchQuit(Exception e, int code)
Copyright © 2016 The American National Corpus. All rights reserved.