Class SplashScreen

java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
org.kopi.vkopi.lib.ui.swing.visual.SplashScreen
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class SplashScreen extends Window
See Also:
  • Constructor Details

    • SplashScreen

      public SplashScreen(Image image, String caption)
      Construct a new SplashScreen.
      Parameters:
      image - The image to display in the splash screen.
      caption - A short text caption to display below the image (may be null).
  • Method Details

    • paint

      public void paint(Graphics gc)
      Paint the splash screen.
      Overrides:
      paint in class Window
    • setVisible

      public void setVisible(boolean flag)
      Display or hide the splash screen. The splash screen is displayed on the desktop, centered on the screen. Although this method returns immediately, the splash screen remains on the desktop for the duration of the time delay, or indefinitely if the delay was set to 0.
      Overrides:
      setVisible in class Window
    • getPreferredSize

      public Dimension getPreferredSize()
      Get the splash screen's preferred size.
      Overrides:
      getPreferredSize in class Container
      Returns:
      The preferred size of the component.
    • centerWindow

      public static final void centerWindow(Window w)