| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2015 ForgeRock AS. |
| | | */ |
| | | |
| | | package org.opends.quicksetup; |
| | | |
| | | import static org.opends.messages.QuickSetupMessages.*; |
| | |
| | | |
| | | private Class<?> quickSetupClass; |
| | | |
| | | // Constant for the display of the splash screen |
| | | /** Constant for the display of the splash screen. */ |
| | | private static final int MIN_SPLASH_DISPLAY = 3000; |
| | | |
| | | /** |
| | |
| | | screen.display(args); |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | public void update(Graphics g) |
| | | { |
| | | paint(g); |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | /** {@inheritDoc} */ |
| | | public void paint(Graphics g) |
| | | { |
| | | g.drawImage(image, 0, 0, this); |
| | | } |
| | | |
| | | /** |
| | | * Protected constructor to force to use the main method. |
| | | * |
| | | */ |
| | | /** Protected constructor to force to use the main method. */ |
| | | protected SplashScreen() |
| | | { |
| | | super(new Frame()); |
| | |
| | | setPreferredSize(new Dimension(width, height)); |
| | | setSize(width, height); |
| | | Utilities.centerOnScreen(this); |
| | | |
| | | } catch (Exception ex) |
| | | { |
| | | ex.printStackTrace(); // Bug |