-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHelpMenu.java
More file actions
28 lines (26 loc) · 783 Bytes
/
Copy pathHelpMenu.java
File metadata and controls
28 lines (26 loc) · 783 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
//henry bogardus
import javax.swing.JMenu;
import javax.swing.JMenuItem;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
import java.awt.*;
public class HelpMenu extends JMenu
{
PaintMainWindow mMainWindow;
public HelpMenu(PaintMainWindow mainWindow)
{
super("Help");
mMainWindow = mainWindow;
JMenuItem helpMenuItem = new JMenuItem("Help");
add(helpMenuItem);
class HelpMenuOptionListener implements ActionListener
{
public void actionPerformed(ActionEvent event)
{
JOptionPane.showMessageDialog(null, "Help? Lol jk");
}
}
helpMenuItem.addActionListener(new HelpMenuOptionListener());
}
}