Methods Summary |
---|
public static java.lang.String | getLabel(java.lang.String code)
if( labels == null ) {
return code;
}
else {
try {
return labels.getString(code);
}
catch( MissingResourceException e ) {
e.printStackTrace();
return code;
}
}
|
public static java.lang.String | getTooltip(java.lang.String code)
if( tooltips == null ) {
return code;
}
else {
try {
return tooltips.getString(code);
}
catch( MissingResourceException e ) {
e.printStackTrace();
return code;
}
}
|
private static void | loadBundles()
try {
tooltips = ResourceBundle.getBundle(TOOLTIPS, locale);
labels = ResourceBundle.getBundle(LABELS,locale);
}
catch( MissingResourceException e ) {
e.printStackTrace();
}
|
public static void | main(java.lang.String[] args)
loadBundles();
try {
Identifier.login("oreilly", "oreilly");
}
catch( AuthenticationException e ) {
e.printStackTrace();
return;
}
frame = new BankFrame();
frame.setVisible(true);
|
public static void | notifyResume()
Cursor c;
if( cursors.isEmpty() ) {
c = Cursor.getDefaultCursor();
}
else {
c = (Cursor)cursors.pop();
}
frame.setCursor(c);
|
public static void | notifyWait()
cursors.push(frame.getCursor());
frame.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
|
public static void | setLocale(java.util.Locale loc)
locale = loc;
loadBundles();
|