Class ButtonPanel

    • Field Detail

      • selectedButton

        protected JButton selectedButton
    • Constructor Detail

      • ButtonPanel

        public ButtonPanel​(String[] buttonText)
        Parameters:
        buttonText - use ampersands to denote mnemonics
    • Method Detail

      • addActionListener

        public void addActionListener​(ActionListener l)
      • removeActionListener

        public void removeActionListener​(ActionListener l)
      • getSelectedButton

        public JButton getSelectedButton()
      • setSelectedButton

        public void setSelectedButton​(JButton selectedButton)