use of org.compiere.util.Splash in project adempiere by adempiere.
the class POSClient method main.
public static void main(String[] args) {
/** Properties */
Properties m_ctx = new Properties();
// needs to be here for UI
Adempiere.startup(true);
Splash splash = new Splash("POS Client");
final FormFrame frame = new FormFrame(new CFrame("POS Client"));
// Focus Traversal
KeyboardFocusManager.setCurrentKeyboardFocusManager(AKeyboardFocusManager.get());
ALogin login = new ALogin(splash);
if (// no automatic login
!login.initLogin()) {
// Center the window
try {
// HTML load errors
AEnv.showCenterScreen(login);
} catch (Exception ex) {
}
if (!login.isConnected() || !login.isOKpressed())
AEnv.exit(1);
}
// Check Build
if (!DB.isBuildOK(m_ctx))
AEnv.exit(1);
// Check DB (AppsServer Version checked in Login)
DB.isDatabaseOK(m_ctx);
splash.setText(Msg.getMsg(m_ctx, "Loading"));
splash.toFront();
//
if (// Load Environment
!Adempiere.startupEnvironment(true))
System.exit(1);
// Start Session
MSession.get(Env.getCtx(), true);
// Default Image
frame.setIconImage(Adempiere.getImage16());
splash.dispose();
splash = null;
POSClientWindow m_window;
m_window = new POSClientWindow(m_ctx);
m_window.setVisible(true);
}
use of org.compiere.util.Splash in project adempiere by adempiere.
the class AApplet method start.
// init
/**
* start
*/
public void start() {
super.start();
showStatus(Adempiere.getSummary());
//
Splash splash = Splash.getSplash();
// needs to be here for UI
Adempiere.startup(true);
AMenu menu = new AMenu();
}
use of org.compiere.util.Splash in project adempiere by adempiere.
the class ASyncProcessBase method lockUI.
// start
/**
* Lock User Interface.
* Called from the Worker before processing
* @param pi process info
*/
public void lockUI(ProcessInfo pi) {
m_isLocked = true;
m_splash = new Splash(Msg.getMsg(Env.getCtx(), "Processing"));
m_splash.toFront();
}
Aggregations