瀏覽代碼

save butten for the graph on the right

Kevin Trometer 8 年之前
父節點
當前提交
1640a6470c
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      src/ui/view/StatisticGraphPanel.java

+ 4 - 2
src/ui/view/StatisticGraphPanel.java

@@ -90,9 +90,11 @@ public class StatisticGraphPanel extends JPanel {
 
 		// Panel on top (Name and Close Button)
 		topPanel.setLayout(new BorderLayout(0, 0));
-		topPanel.add(graphNameLabel, BorderLayout.WEST);
+		JPanel topPanelHelp = new JPanel(new BorderLayout(0,0));
+		topPanelHelp.add(graphNameLabel, BorderLayout.CENTER);
+		topPanelHelp.add(savImgButton, BorderLayout.EAST);
+		topPanel.add(topPanelHelp, BorderLayout.CENTER);
 		topPanel.add(closeButton, BorderLayout.EAST);
-		topPanel.add(savImgButton, BorderLayout.CENTER);
 		savImgButton.addActionListener(new ActionListener() {
 			@Override
 			public void actionPerformed(ActionEvent e) {