|
@@ -45,6 +45,7 @@ import java.awt.event.MouseAdapter;
|
|
|
import java.awt.event.MouseEvent;
|
|
|
import javax.swing.JMenuItem;
|
|
|
import javax.swing.BoxLayout;
|
|
|
+import java.awt.FlowLayout;
|
|
|
|
|
|
public class splitPane extends JSplitPane implements GraphListener {
|
|
|
private JTextField graphNrTxtField;
|
|
@@ -338,7 +339,9 @@ public class splitPane extends JSplitPane implements GraphListener {
|
|
|
JButton btnAdd = new JButton("Add");
|
|
|
btnAdd.addActionListener(new ActionListener() {
|
|
|
public void actionPerformed(ActionEvent e) {
|
|
|
- graphPanel.add(new JPanel());
|
|
|
+ StatisticGraph tmp = new StatisticGraph(controller.getModel(), controller);
|
|
|
+ graphPanel.add(tmp);
|
|
|
+ graphPanel.revalidate();
|
|
|
graphPanel.updateUI();
|
|
|
}
|
|
|
});
|
|
@@ -515,6 +518,9 @@ public class splitPane extends JSplitPane implements GraphListener {
|
|
|
graphPanel = new JPanel();
|
|
|
graphScrollPane.setViewportView(graphPanel);
|
|
|
graphPanel.setLayout(new BoxLayout(graphPanel, BoxLayout.Y_AXIS));
|
|
|
+
|
|
|
+ JPanel panel_1 = new JPanel();
|
|
|
+ graphPanel.add(panel_1);
|
|
|
repaintGraph();
|
|
|
}
|
|
|
@Override
|