FaultInOurPong
1
|
Public Member Functions | |
Mode () | |
Constructor for the player. More... | |
void | addButton (JButton x) |
adds buttons to a panel More... | |
void | addListener (ActionListener buttonListener) |
adds action listener to the buttons More... | |
JButton | getSingle () |
gets the button for single mode More... | |
Private Attributes | |
JButton | single = new JButton("Single Player Mode") |
JButton | sObstacle = new JButton("Advanced Single Player Mode") |
JPanel | buttonPanel |
view.Mode.Mode | ( | ) |
Constructor for the player.
sets the size and header for the window, and adds buttons to the window
Setups for the frame
Setups for the buttons on the panel
Add the panel to the frame/window for display
void view.Mode.addButton | ( | JButton | x | ) |
adds buttons to a panel
makes buttons align in the panel
void view.Mode.addListener | ( | ActionListener | buttonListener | ) |
adds action listener to the buttons
buttonListener | is the action listener |
JButton view.Mode.getSingle | ( | ) |
gets the button for single mode
|
private |
Variable declarations for the buttons