at.ofai.music.beatroot

Class ControlPanel.ButtonPanel

class ControlPanel.ButtonPanel extends JPanel

For layout of the grid of buttons (i.e. not including the zoom buttons)
Field Summary
static longserialVersionUID
Constructor Summary
ButtonPanel(int r, int c)
Constructor:
Method Summary
voidaddButton(String s, ActionListener al)
Adds a button to this panel.

Field Detail

serialVersionUID

static final long serialVersionUID

Constructor Detail

ButtonPanel

public ButtonPanel(int r, int c)
Constructor:

Parameters: r Number of rows of buttons c NUmber of columns of buttons

Method Detail

addButton

public void addButton(String s, ActionListener al)
Adds a button to this panel.

Parameters: s The text on the button al The event handler for when the button is pressed