Pārlūkot izejas kodu

save butten for the graph on the right

Kevin Trometer 8 gadi atpakaļ
vecāks
revīzija
1640a6470c
1 mainītis faili ar 4 papildinājumiem un 2 dzēšanām
  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) {