소스 검색

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) {