Ver código fonte

save butten for the graph on the right

Kevin Trometer 8 anos atrás
pai
commit
1640a6470c
1 arquivos alterados com 4 adições e 2 exclusões
  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) {