|
@@ -30,6 +30,7 @@ public class StatisticGraphPanel extends JPanel {
|
|
|
private final JLabel maximumLabel = new JLabel("0");
|
|
|
private JPanel topPanel = new JPanel();
|
|
|
private JButton closeButton = new JButton("X");
|
|
|
+ private JPanel that;
|
|
|
|
|
|
// Variables
|
|
|
String graphName;
|
|
@@ -68,7 +69,7 @@ public class StatisticGraphPanel extends JPanel {
|
|
|
maximumLabel.setPreferredSize(new Dimension(30,10));
|
|
|
// ******************** Component Listener ****************//
|
|
|
|
|
|
- JPanel that = this;
|
|
|
+ that = this;
|
|
|
closeButton.addActionListener(new ActionListener() {
|
|
|
@Override
|
|
|
public void actionPerformed(ActionEvent e) {
|