Package mars.venus

Class SplashScreen

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer

public class SplashScreen extends JWindow
Produces MARS splash screen. Adapted from an old Java Tips page .
See Also:
  • Constructor Details

    • SplashScreen

      public SplashScreen(VenusUI gui, int duration)
      Construct the splash screen for MARS which will display for the given duration when shown.
      Parameters:
      duration - The duration to display the splash screen when showSplash() is called, in milliseconds.
  • Method Details

    • showSplash

      public void showSplash()
      Show the splash screen for the amount of time given in the constructor, then set the main GUI window to be visible.