Examples of SplashScreen


Examples of at.bestsolution.drawswf.SplashScreen

     */
    public static void main(String[] args)
    {
        MainWindow main_window = new MainWindow();
       
        SplashScreen splash_screen = new SplashScreen( main_window, 0 );
       
        main_window.drawIt( splash_screen );
       
        main_window.setVisible(true);
       
        splash_screen.setVisible( false );
        splash_screen.dispose();
    }
View Full Code Here

Examples of br.com.visualmidia.ui.splash.SplashScreen

   
   
   
    private static void fakeLoadSystem(final Shell shell) {
        final int waitTime = 375;
        final SplashScreen splashScreen = new SplashScreen(shell.getShell());
        splashScreen.setRaiseAmount(waitTime);
//        splashScreen.setWaitTime(100000);
        splashScreen.open();
        splashScreen.setMessage("Carregando o Gerente Digital........");
    }
View Full Code Here

Examples of br.com.visualmidia.ui.splash.SplashScreen

    }
  }

    private void loadSystem(final Shell shell) {
        final int waitTime = 375;
        final SplashScreen splashScreen = new SplashScreen(getShell());
        splashScreen.setRaiseAmount(waitTime);
        splashScreen.setWaitTime(500);
        splashScreen.open();

        display.asyncExec(new Runnable() {
            public void run() {
                try {
                    splashScreen.setMessage("Restaurando base de dados");
                    splashScreen.raiseBar();
                    system = GDSystem.getInstance();
                   
                    splashScreen.setMessage("Inicializando registros");
                    splashScreen.raiseBar();
                    GDSystem.getGDRegistry();
                    GD.getInstance();
                    Thread.sleep(waitTime);
                   
                   
                    if(GDSystem.isStandAloneMode()) {
//                      splashScreen.setMessage("Verificando licen�a");
//                      splashScreen.raiseBar();
//                      if(!Anakin.getInstance().isTheForceWithYou()) {
//                        splashScreen.setMessage("Licen�a invalida");
//                        splashScreen.close();
//                        new RevengeOfTheSith().run();
//                      }
                     
//                      if((!Anakin.getInstance().isTheForceWithYou()) ||
//                    (GDSystem.getInstance().getProperty("serialnumber") == null) ||
//                    (GDSystem.getInstance().getProperty("username") == null) ||
//                    (GDSystem.getInstance().getProperty("password") == null) ||
//                    (GDSystem.getInstance().getProperty("serialnumber").equals("")) ||
//                    (GDSystem.getInstance().getProperty("username").equals("")) ||
//                    (GDSystem.getInstance().getProperty("password").equals(""))){
//                        splashScreen.setMessage("Licen�a invalida");
//                        splashScreen.close();
//                    new RevengeOfTheSith(shell, false).open();
//                            }
//                      Thread.sleep(waitTime);
//                     
//                      splashScreen.setMessage("Validando dados");
//                      splashScreen.raiseBar();
//                      if (!PidManager.getInstance().isValidPID()) {
//                        splashScreen.setMessage("Data de abertura modificada");
//                        splashScreen.close();
//                        MessageDialog.openWarning(shell, "Aten��o!", "N�o foi possivel iniciar o Gerente Digital, foi detectada uma altera��o na data de abertura.");
//                        close();
//                      }
//                     
//                      splashScreen.setMessage("Executando tarefas de atualiza��o");
//                      splashScreen.raiseBar();
//                    } else {
//                      splashScreen.setMessage("Verificando disponibilidade do servidor");
//                      splashScreen.raiseBar();
//                      Thread.sleep(waitTime);
//                     
//                      splashScreen.setMessage("Servidor dispon�vel");
//                      splashScreen.raiseBar();
//                      Thread.sleep(waitTime);
//                     
//                      splashScreen.setMessage("Efetuando atualiza��es");
//                      splashScreen.raiseBar();
                    }

                    splashScreen.setMessage("Configurando Gr�ficos");
                    splashScreen.raiseBar();
                    configureShell(shell);
                    Thread.sleep(waitTime);

                    splashScreen.setMessage("Criando Componentes");
                    splashScreen.raiseBar();
                    createContents(shell);
                    Thread.sleep(waitTime);

                    splashScreen.setMessage("Sistema pronto");
                    splashScreen.raiseBar();
                    Thread.sleep(waitTime);

                    shell.open();
                } catch (Throwable e) {
                }
View Full Code Here

Examples of com.atlauncher.gui.SplashScreen

                    System.exit(0);
                }
            }
        }
        settings = new Settings(); // Setup the Settings and wait for it to finish
        final SplashScreen ss = new SplashScreen();
        SwingUtilities.invokeLater(new Runnable() {
            @Override
            public void run() {
                ss.setVisible(true);
            }
        });
        loadTheme();
        settings.loadConsole(); // Load console AFTER L&F

        if (settings.enableTrayIcon() && !skipTrayIntegration) {
            try {
                trySystemTrayIntegration(); // Try to enable the tray icon
            } catch (Exception e) {
                settings.logStackTrace(e);
            }
        }

        LogManager.info("ATLauncher Version: " + Constants.VERSION);
        LogManager.info("Operating System: " + System.getProperty("os.name"));
        LogManager.info("RAM Available: " + Utils.getMaximumRam() + "MB");
        if (settings.isUsingCustomJavaPath()) {
            LogManager.warn("Custom Java Path Set!");
        } else if (settings.isUsingMacApp()) {
            File oracleJava = new File("/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java");
            if (oracleJava.exists() && oracleJava.canExecute()) {
                settings.setJavaPath("/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home");
                LogManager.warn("Launcher Forced Custom Java Path Set!");
            }
        }
        LogManager.info("Java Version: " + Utils.getActualJavaVersion());
        LogManager.info("Java Path: " + settings.getJavaPath());
        LogManager.info("64 Bit Java: " + Utils.is64Bit());
        LogManager.info("Launcher Directory: " + settings.getBaseDir());
        LogManager.info("Using Theme: " + THEME);

        if (Utils.isMac()) {
            System.setProperty("apple.laf.useScreenMenuBar", "true");
            System.setProperty("com.apple.mrj.application.apple.menu.about.name", "ATLauncher " + Constants.VERSION);
            try {
                Class util = Class.forName("com.apple.eawt.Application");
                Method getApplication = util.getMethod("getApplication", new Class[0]);
                Object application = getApplication.invoke(util);
                Class params[] = new Class[1];
                params[0] = Image.class;
                Method setDockIconImage = util.getMethod("setDockIconImage", params);
                setDockIconImage.invoke(application, Utils.getImage("/assets/image/Icon.png"));
            } catch (Exception ex) {
                ex.printStackTrace(System.err);
            }
        }

        if (settings.enableConsole()) {
            settings.getConsole().setVisible(true);
        }

        LogManager.info("Showing splash screen and loading everything");
        settings.loadEverything(); // Loads everything that needs to be loaded
        LogManager.info("Launcher finished loading everything");

        if (settings.isFirstTimeRun()) {
            LogManager.warn("Launcher not setup. Loading Setup Dialog");
            new SetupDialog();
        }

        boolean open = true;

        if (autoLaunch != null && settings.isInstanceBySafeName(autoLaunch)) {
            Instance instance = settings.getInstanceBySafeName(autoLaunch);
            LogManager.info("Opening Instance " + instance.getName());
            if (instance.launch()) {
                open = false;
            } else {
                LogManager.error("Error Opening Instance  " + instance.getName());
            }
        }

        TRAY_MENU.localize();
        integrate();
        ss.close();
        new LauncherFrame(open); // Open the Launcher
    }
View Full Code Here

Examples of com.barrybecker4.ui.components.SplashScreen

            // use a default
            splash = new ImageIcon( new BufferedImage( 300, 300, BufferedImage.TYPE_INT_RGB ) );
        } else  {
            splash = new ImageIcon( url );
        }
        return new SplashScreen( splash, null, waitMillis );
    }
View Full Code Here

Examples of com.cburch.logisim.gui.start.SplashScreen

    // kick off the progress monitor
    // (The values used for progress values are based on a single run where
    // I loaded a large file.)
    if (showSplash) {
      try {
        monitor = new SplashScreen();
        monitor.setVisible(true);
      } catch (Throwable t) {
        monitor = null;
        showSplash = false;
      }
View Full Code Here

Examples of com.cburch.logisim.gui.start.SplashScreen

        // kick off the progress monitor
        // (The values used for progress values are based on a single run where
        // I loaded a large file.)
        if (showSplash) {
            try {
                monitor = new SplashScreen();
                monitor.setVisible(true);
            } catch (Exception e) {
                monitor = null;
                showSplash = false;
                logger.warn( "Not showing the splash screen, for some reason" );
View Full Code Here

Examples of com.mucommander.ui.main.SplashScreen

            System.setProperty("java.net.useSystemProxies", "true");

            // Shows the splash screen, if enabled in the preferences
            useSplash = MuConfigurations.getPreferences().getVariable(MuPreference.SHOW_SPLASH_SCREEN, MuPreferences.DEFAULT_SHOW_SPLASH_SCREEN);
            if(useSplash) {
                splashScreen = new SplashScreen(RuntimeConstants.VERSION, "Loading preferences...");}

            boolean showSetup;
            showSetup = MuConfigurations.getPreferences().getVariable(MuPreference.THEME_TYPE) == null;

            // Traps VM shutdown
View Full Code Here

Examples of de.axxeed.animosy.gui.SplashScreen

    /**This is the main method. Called when run as an application
     */
    public static void main(String args[])
    {
      (new SplashScreen()).setVisible(true);
    AnImOSY mw = new AnImOSY();
   
    // add a key listener
    mw.addKeyListener(GUIEventListener.getInstance());
   
View Full Code Here

Examples of de.sistemich.mafrasi.widgets.splash.SplashScreen

        @Override
        public void run() {
          try {
            mainFrame = new JFrame("Stop Motion Capture");

            SplashScreen splash = new SplashScreen(mainFrame, SMCUtilities.getResourceFile("resources/splash.jpg"));
            splash.getProgressBar().setVisible(true);
            splash.getProgressBar().setProgress(50);
            splash.run();
          }catch (IOException e) {
            e.printStackTrace();
          }
        }
      });
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.