Sfoglia il codice sorgente

Changed local paths to relative paths.

Gilian Joosen 10 anni fa
parent
commit
e900f0a14c

+ 2 - 2
src/gui/panels/edit/ActsPane.java

@@ -72,7 +72,7 @@ public class ActsPane extends JPanel {
         //add button
         JLabel addButton = new JLabel();
         addButton.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 20));
-        addButton.setIcon(new ImageIcon("E:\\Bibliotheek\\Documenten\\Workspaces\\FestivalPlanner\\res\\add.png"));
+        addButton.setIcon(new ImageIcon(getClass().getResource("/add.png")));
         addButton.setForeground(new Color(51,51,51));
         addButton.addMouseListener(new MouseListener() {
 			@Override
@@ -104,7 +104,7 @@ public class ActsPane extends JPanel {
         
         //remove button
         JLabel removeButton = new JLabel();
-        removeButton.setIcon(new ImageIcon("E:\\Bibliotheek\\Documenten\\Workspaces\\FestivalPlanner\\res\\remove.png"));
+        removeButton.setIcon(new ImageIcon(getClass().getResource("/remove.png")));
         removeButton.addMouseListener(new MouseListener() {
 			@Override
 			public void mouseClicked(MouseEvent e) {

+ 2 - 2
src/gui/panels/edit/ArtistPane.java

@@ -76,7 +76,7 @@ public class ArtistPane extends JPanel {
         buttonPane.setOpaque(false);
         JLabel addArtist = new JLabel();
         addArtist.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 20));
-        addArtist.setIcon(new ImageIcon("E:\\Bibliotheek\\Documenten\\Workspaces\\FestivalPlanner\\res\\add.png"));
+        addArtist.setIcon(new ImageIcon(this.getClass().getResource("/add.png")));
         addArtist.setForeground(new Color(51,51,51));
         addArtist.addMouseListener(new MouseListener() {
 			@Override
@@ -107,7 +107,7 @@ public class ArtistPane extends JPanel {
         buttonPane.add(addArtist);
         
         JLabel removeButton = new JLabel();
-        removeButton.setIcon(new ImageIcon("E:\\Bibliotheek\\Documenten\\Workspaces\\FestivalPlanner\\res\\remove.png"));
+        removeButton.setIcon(new ImageIcon(getClass().getResource("/remove.png")));
         removeButton.setForeground(new Color(51,51,51));
         removeButton.addMouseListener(new MouseListener() {
 			@Override

+ 2 - 2
src/gui/panels/edit/StagesPane.java

@@ -77,7 +77,7 @@ public class StagesPane extends JPanel {
         
         JLabel addButton = new JLabel();
         addButton.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 20));
-        addButton.setIcon(new ImageIcon("E:\\Bibliotheek\\Documenten\\Workspaces\\FestivalPlanner\\res\\add.png"));
+        addButton.setIcon(new ImageIcon(getClass().getResource("/add.png")));
         addButton.setForeground(new Color(51,51,51));
         addButton.addMouseListener(new MouseListener() {
 			@Override
@@ -109,7 +109,7 @@ public class StagesPane extends JPanel {
         buttonPane.add(addButton);
         
         JLabel remove = new JLabel();
-        remove.setIcon(new ImageIcon("E:\\Bibliotheek\\Documenten\\Workspaces\\FestivalPlanner\\res\\remove.png"));
+        remove.setIcon(new ImageIcon(getClass().getResource("/remove.png")));
         remove.setForeground(new Color(51,51,51));
         remove.addMouseListener(new MouseListener() {
 			@Override