source: src/main/java/genius/gui/actions/Session.java@ 155

Last change on this file since 155 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: 490 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.session.SessionPanel;
9
10@SuppressWarnings("serial")
11public class Session extends AbstractAction {
12
13 private GeniusAppInterface main;
14
15 public Session(GeniusAppInterface main) {
16 super("Negotiation");
17 this.main = main;
18 }
19
20 @Override
21 public void actionPerformed(ActionEvent e) {
22 main.addTab("Session", new SessionPanel());
23 }
24
25}
Note: See TracBrowser for help on using the repository browser.