Commit 5c98c564 authored by Nils Vreman's avatar Nils Vreman
Browse files

Removed unused code

parent f5de4bbf
package gui.menu;
import javax.swing.JMenuItem;
import javax.swing.JOptionPane;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class FileHelpItem extends JMenuItem implements ActionListener {
public FileHelpItem() {
super("File");
addActionListener(this);
}
public void actionPerformed(ActionEvent e) {
JOptionPane.showMessageDialog(null, "File text");
}
}
......@@ -7,12 +7,6 @@ public class HelpMenu extends JMenu {
public HelpMenu() {
super("Help");
add(new LicenceMenuItem());
//JMenu helpMenu = new JMenu("Help Center");
//helpMenu.add(new FileHelpItem());
//helpMenu.add(new StrategyHelpItem());
//helpMenu.add(new TasksetHelpItem());
//helpMenu.add(new ScheduleHelpItem());
//add(helpMenu);
add(new HelpMenuItem());
}
}
package gui.menu;
import javax.swing.JMenuItem;
import javax.swing.JOptionPane;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class ScheduleHelpItem extends JMenuItem implements ActionListener {
public ScheduleHelpItem() {
super("Schedule");
addActionListener(this);
}
public void actionPerformed(ActionEvent e) {
JOptionPane.showMessageDialog(null, "Schedule text");
}
}
package gui.menu;
import javax.swing.JMenuItem;
import javax.swing.JOptionPane;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class StrategyHelpItem extends JMenuItem implements ActionListener {
public StrategyHelpItem() {
super("Strategy");
addActionListener(this);
}
public void actionPerformed(ActionEvent e) {
JOptionPane.showMessageDialog(null, "Strategy text");
}
}
package gui.menu;
import javax.swing.JMenuItem;
import javax.swing.JOptionPane;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class TasksetHelpItem extends JMenuItem implements ActionListener {
public TasksetHelpItem() {
super("Taskset");
addActionListener(this);
}
public void actionPerformed(ActionEvent e) {
JOptionPane.showMessageDialog(null, "Taskset text");
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment