source: src/main/java/genius/gui/actions/Tournament.java@ 346

Last change on this file since 346 was 16, checked in by Wouter Pasman, 6 years ago

#2 Connected more to mainPanel. Renamed MainPanelInterface to GeniusAppInterface, as it seems a=priori restrictive to have a interface to a GUI. Refactored DomainRepositoryUI to be independent of a parent to provide a JTree.

File size: 517 bytes
Line 
1package genius.gui.actions;
2
3import java.awt.event.ActionEvent;
4
5import javax.swing.AbstractAction;
6
7import genius.gui.GeniusAppInterface;
8import genius.gui.tournament.MultiTournamentPanel;
9
10@SuppressWarnings("serial")
11public class Tournament extends AbstractAction {
12
13 private GeniusAppInterface main;
14
15 public Tournament(GeniusAppInterface main) {
16 super("Tournament");
17 this.main = main;
18 }
19
20 @Override
21 public void actionPerformed(ActionEvent e) {
22 main.addTab("Tournament", new MultiTournamentPanel());
23 }
24
25}
Note: See TracBrowser for help on using the repository browser.