@@ -0,0 +1,1027 @@
+package es.ucm.fdi.tp.views.swing;%0A%0Aimport java.awt.FlowLayout;%0Aimport java.awt.event.ActionEvent;%0Aimport java.awt.event.ActionListener;%0A%0Aimport javax.swing.JButton;%0Aimport javax.swing.JPanel;%0A%0Aimport es.ucm.fdi.tp.basecode.bgame.control.Controller;%0A%0Apublic class ExitPane extends JPanel implements ActionListener %7B%0A%09%0A%09private static final long serialVersionUID = 967508544579472464L;%0A%09%0A%09private JButton exitButton;%0A%09private JButton restartButton;%0A%09%0A%09private Controller cntrl;%0A%09%0A%09public ExitPane(Controller c) %7B%0A%09%09super(new FlowLayout());%0A%09%09this.cntrl = c;%0A%09%09%0A%09%09this.exitButton = new JButton(%22 Quit %22);%0A%09%09this.exitButton.addActionListener(this);%0A%09%09this.add(exitButton);%0A%09%09%0A%09%09this.restartButton = new JButton(%22 Restart %22);%0A%09%09this.restartButton.addActionListener(this);%0A%09%09this.add(restartButton);%0A%09%7D%0A%09%0A%09@Override%0A%09public void actionPerformed(ActionEvent e) %7B%0A%09%09JButton target = (JButton) e.getSource();%0A%09%09if(target == this.exitButton) %7B%0A%09%09%09cntrl.stop();%0A%09%09%7D else if (target == this.restartButton) %7B%0A%09%09%09cntrl.restart();%0A%09%09%7D%0A%09%7D%0A%0A%7D%0A

Exit pane component