1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
public void start() {
try {
GUIProtect.getInstance().activateProtection(true);
final Frame splashFrame = SplashWindow.getInstance().getFrame("Mon application");
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
SplashWindow.getInstance().setTextChargement("Authentification");
userLogin();
SplashWindow.getInstance().setTextChargement("Mise à jour de la structure des données");
BusinessHome.getInstance().checkDbUpdate();
SplashWindow.getInstance().setTextChargement("Création de l'interface graphique");
...
SplashWindow.getInstance().setTextChargement("Ouverture de l'application");
....
if (splashFrame != null) splashFrame.dispose();
} catch (Exception ex) {
ex.printStackTrace();
}
}
});
} catch (Exception ex) {
ex.printStackTrace();
}
}
public static void main(String[] args) {
MyLauncher launcher = new MyLauncher();
launcher.initSecurityManager();
launcher.initJNDIProperties();
launcher.initDebugOutput();
launcher.initLookAndFeel();
launcher.start();
} |