|
@@ -102,7 +102,7 @@ public class StatisticGraphPanel extends JPanel {
|
|
|
JFileChooser fileChooser = new JFileChooser();
|
|
|
if (fileChooser.showSaveDialog(new JFrame()) == JFileChooser.APPROVE_OPTION) {
|
|
|
String file = fileChooser.getSelectedFile().getPath();
|
|
|
- ImageIO.write(img, "jpg", new File(file+".jpg"));
|
|
|
+ ImageIO.write(img, "jpg", new File(file + ".jpg"));
|
|
|
}
|
|
|
} catch (IOException e1) {
|
|
|
|
|
@@ -172,7 +172,7 @@ public class StatisticGraphPanel extends JPanel {
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
- JLabel b = new JLabel(set.getCpsObject().getName() + ": " + property);
|
|
|
+ JLabel b = new JLabel(set.getCpsObject().getID() + ", " + set.getCpsObject().getName() + ": " + property);
|
|
|
b.setBackground(set.getColor());
|
|
|
int color = Math.max(Math.max(set.getColor().getRed(), set.getColor().getGreen()), set.getColor().getBlue());
|
|
|
if (color <= 128) {
|