Class Scene

java.lang.Object
mastermind.gui.scenes.Scene
Direct Known Subclasses:
CodeBreaker, CodeBreakerResult, CodeBreakerSelector, CodeMaker, CodeMakerResult, CodeMakerSelector, GameModeSelector, SecretCodePrompt

public abstract class Scene extends Object
The ultimate base class of all mastermind.gui.scenes.

Every scene derives from Scene.

  • Field Details

    • frame

      protected final JFrame frame
      The JFrame associated with this scene.
  • Method Details

    • createDefaultScene

      public static JFrame createDefaultScene()
      Creates and returns a default configured JFrame instance.

      The returned JFrame uses a vertical BoxLayout for its content pane, and its size, title, and visibility settings are predefined. The JFrame is also resizable.

      Returns:
      A configured JFrame instance.