diff --git a/res/cross_mark.png b/res/delete-icon.png similarity index 100% rename from res/cross_mark.png rename to res/delete-icon.png diff --git a/res/save-icon.png b/res/save-icon.png new file mode 100644 index 0000000..41add87 Binary files /dev/null and b/res/save-icon.png differ diff --git a/src/main/org/insa/graphics/PathsPanel.java b/src/main/org/insa/graphics/PathsPanel.java index 43c5018..3e687a4 100644 --- a/src/main/org/insa/graphics/PathsPanel.java +++ b/src/main/org/insa/graphics/PathsPanel.java @@ -28,7 +28,6 @@ import javax.swing.JFileChooser; import javax.swing.JLabel; import javax.swing.JOptionPane; import javax.swing.JPanel; -import javax.swing.UIManager; import javax.swing.border.EmptyBorder; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; @@ -213,7 +212,9 @@ public class PathsPanel extends JPanel implements DrawingChangeListener, GraphCh } }); - JButton saveButton = new JButton(UIManager.getIcon("FileView.floppyDriveIcon")); + Image saveImg = ImageIO.read(getClass().getResourceAsStream("/save-icon.png")) + .getScaledInstance(14, 14, java.awt.Image.SCALE_SMOOTH); + JButton saveButton = new JButton(new ImageIcon(saveImg)); saveButton.setFocusPainted(false); saveButton.setFocusable(false); saveButton.setMinimumSize(size); @@ -245,7 +246,7 @@ public class PathsPanel extends JPanel implements DrawingChangeListener, GraphCh } }); - Image newimg = ImageIO.read(getClass().getResourceAsStream("/cross_mark.png")) + Image newimg = ImageIO.read(getClass().getResourceAsStream("/delete-icon.png")) .getScaledInstance(14, 14, java.awt.Image.SCALE_SMOOTH); JButton deleteButton = new JButton(new ImageIcon(newimg)); deleteButton.setFocusPainted(false);