Package java.awt

Examples of java.awt.SplashScreen


*/
public class Main {
    public static void main(String[] args) throws FileNotFoundException, IOException, CardException, ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException {
       
        //UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        final SplashScreen splash = SplashScreen.getSplashScreen();
        if (splash != null)
            splash.close();

        PrintStream outStream;
        if(null!=System.console())
            outStream=System.out;
        else{
View Full Code Here


    public void nimpSmartCardShell(String[] args) throws FileNotFoundException, IOException, InterruptedException, ScardException, ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException {
        long start = System.nanoTime();
        ATextScreenOutputJFrame mainWindow;

        UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        final SplashScreen splash = SplashScreen.getSplashScreen();

        PipedOutputStream pos = new PipedOutputStream();
        PrintStream outputStream = new PrintStream(pos);
        mainWindow = new ATextScreenOutputJFrame(true);
        mainWindow.monitorStream(pos);
        mainWindow.setTitle(ATimeUtilities.getTimeForUi() + " - Nimp smart card script player");

        System.setOut(outputStream);
        System.setErr(outputStream);

        if (splash != null) {
            splash.close();
        }

        mainWindow.setExtendedState(JFrame.MAXIMIZED_BOTH);
        mainWindow.setBackground(mainWindow.getBackground());//this get the system color for window background and apply it to the log area
        mainWindow.setVisible(true);
View Full Code Here

        //otherwise:
        UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());

        ATextScreenOutputJFrame mainWindow;
        final SplashScreen splash = SplashScreen.getSplashScreen();

        PipedOutputStream pos = new PipedOutputStream();
        PrintStream outputStream = new PrintStream(pos);
        mainWindow = new ATextScreenOutputJFrame(true);
        //Font outputFont=new Font("Monospaced", 0, 10);
        //mainWindow.setFont(outputFont);
        mainWindow.monitorStream(pos);
        mainWindow.setTitle(ATimeUtilities.getTimeForUi() + " - Nimp smart card script player (build "+getBuildNumber()+")");

       
        System.setOut(outputStream);
        System.setErr(outputStream);

        if (splash != null) {
            splash.close();
        }

        mainWindow.setExtendedState(JFrame.MAXIMIZED_BOTH);
        mainWindow.setBackground(mainWindow.getBackground());//this get the system color for window background and apply it to the log area
        mainWindow.setVisible(true);
View Full Code Here

     * @param args the command line arguments
     */
    public static void main(String args[])
    {

        SplashScreen splash = SplashScreen.getSplashScreen();
        if (splash != null)
        {
            Graphics2D g = (Graphics2D) splash.createGraphics();
            Rectangle size = splash.getBounds();
            g.setComposite(AlphaComposite.Clear);
            g.fillRect(0, 0, size.width, size.height);
            g.setPaintMode();
        }

View Full Code Here

     * @param args the command line arguments
     */
    public static void main(String args[])
    {

        SplashScreen splash = SplashScreen.getSplashScreen();
        if (splash != null)
        {
            Graphics2D g = (Graphics2D) splash.createGraphics();
            Rectangle size = splash.getBounds();
            g.setComposite(AlphaComposite.Clear);
            g.fillRect(0, 0, size.width, size.height);
            g.setPaintMode();
        }

View Full Code Here

    } catch (SlickException e) {
      throw new GraphicsError(e);
    }
   
    // SplashScreen schließen
    SplashScreen splash = SplashScreen.getSplashScreen();
    if (splash != null) {
      // Künstlich warten
      if(this.fullscreen) {
        try {
          Thread.sleep(2000);
        } catch (InterruptedException ex) {  }
      }
     
      try {
        splash.close();
      } catch (IllegalStateException e) {
        e.printStackTrace();
      }
    } else {
      Log.warn("No Java Splash Screen had been created");
View Full Code Here

      throw new GraphicsError(e);
    }

    // SplashScreen schließen
    // TODO: Erst nach dem Laden erledigen
    SplashScreen splash = SplashScreen.getSplashScreen();
    if (splash != null) {
      try {
        splash.close();
      } catch (IllegalStateException e) {
        e.printStackTrace();
      }
    }
View Full Code Here

            System.out.println( e.getMessage() );

        }

        final SplashScreen splash = SplashScreen.getSplashScreen();

        if ( splash == null ) {
            System.out.println( "???????   SplashScreen.getSplashScreen() returned null" );
        }
View Full Code Here

 
    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
      final SplashScreen splash = SplashScreen.getSplashScreen();
      if (splash != null) {
        Graphics2D g = splash.createGraphics();
        if (g != null) {
          renderSplashFrame(g);
        }
        splash.update();
      }
     
    Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
      public void uncaughtException(Thread t, Throwable e) {
        logger.log(Level.SEVERE, null, e);
View Full Code Here

    closeSplashScreen();
  }

  private void closeSplashScreen()
  {
    SplashScreen splashScreen = SplashScreen.getSplashScreen();
    if (splashScreen != null)
    {
      SplashScreen.getSplashScreen().close();
    }
  }
View Full Code Here

TOP

Related Classes of java.awt.SplashScreen

Copyright © 2018 www.massapicom. 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.