Class WebbPopup

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants
Direct Known Subclasses:
ExampleWebbPopup, PopupCongratulations, PopupLeaderboard, PopupStatistics

public abstract class WebbPopup extends JDialog
A popup that is displayed on top of the screen.
See Also:
  • Constructor Details

    • WebbPopup

      public WebbPopup()
      Creates a new popup with no title.
    • WebbPopup

      public WebbPopup(String title)
      Creates a new popup with the given title.
      Parameters:
      title - The title of the popup.
  • Method Details

    • show

      public final void show(Screen screen)
      Shows the popup on top of the screen.
      Parameters:
      screen - The screen to show the popup on top of.
    • close

      protected void close()
      Closes the popup.
    • populateComponents

      protected abstract void populateComponents(JPanel contentPane, SpringLayout layout)
      Populates the components of the popup.
      Parameters:
      contentPane - The content pane of the popup.
      layout - The layout of the popup.
    • setExitButton

      public void setExitButton(boolean exitButton)
      Sets whether the popup should have an exit button.
      Parameters:
      exitButton - Whether the popup should have an exit button.