Class KeyPegsPrompt

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class KeyPegsPrompt extends JPanel
A panel that allows the user to set the number of black and white key pegs.
See Also:
  • Constructor Details

    • KeyPegsPrompt

      public KeyPegsPrompt()
      Creates a new key pegs counter panel. Initializes the layout and adds controls for black and white pegs.
  • Method Details

    • getBlackPegs

      public int getBlackPegs()
      Returns the number of black pegs.
      Returns:
      the number of black pegs
    • getWhitePegs

      public int getWhitePegs()
      Returns the number of white pegs.
      Returns:
      the number of white pegs