-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMenuBarActions.java
More file actions
executable file
·52 lines (34 loc) · 896 Bytes
/
Copy pathMenuBarActions.java
File metadata and controls
executable file
·52 lines (34 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/**Class that will be used to handle events thrown by the menu bar
* and other buttons that have the same functions as the menu bar.*/
import java.awt.event.*;
public class MenuBarActions implements ActionListener {
//public method to handle all events thrown by buttons in gui
public void actionPerformed(ActionEvent e)
{
//if statements to determine which button was clicked
if(e.getActionCommand().equals("Reset"))
{
}
else if (e.getActionCommand().equals("Vote"))
{
}
else if (e.getActionCommand().equals("Save"))
{
}
else if (e.getActionCommand().equals("Close"))
{
}
else if (e.getActionCommand().equals("Total"))
{
}
else if (e.getActionCommand().equals("Gender"))
{
}
else if (e.getActionCommand().equals("Age"))
{
}
else if (e.getActionCommand().equals("Ethnicity"))
{
}
}
}