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
|
Rev | Line | |
---|
[16] | 1 | package genius.gui.actions;
|
---|
| 2 |
|
---|
| 3 | import java.awt.event.ActionEvent;
|
---|
| 4 |
|
---|
| 5 | import javax.swing.AbstractAction;
|
---|
| 6 |
|
---|
| 7 | import genius.gui.GeniusAppInterface;
|
---|
| 8 | import genius.gui.tournament.MultiTournamentPanel;
|
---|
| 9 |
|
---|
| 10 | @SuppressWarnings("serial")
|
---|
| 11 | public 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.