Sfoglia il codice sorgente

Changed hierarchie.
Image path is relative now.

Gilian Joosen 11 anni fa
parent
commit
9bb6067c2c
3 ha cambiato i file con 4 aggiunte e 2 eliminazioni
  1. 0 0
      res/img/Xicon.png
  2. 0 0
      res/img/_icon.png
  3. 4 2
      src/GUI.java

+ 0 - 0
img/Xicon.png → res/img/Xicon.png


+ 0 - 0
img/_icon.png → res/img/_icon.png


+ 4 - 2
src/GUI.java

@@ -1,3 +1,5 @@
+package src;
+
 import java.awt.Color;
 import java.awt.EventQueue;
 import java.awt.Frame;
@@ -72,7 +74,7 @@ public class GUI {
 							
 		     }
 		});
-		ImageIcon closeIcon = new ImageIcon("E:/Bibliotheek/Documenten/Workspaces/Agenda/img/Xicon.png");
+		ImageIcon closeIcon = new ImageIcon("res/img/Xicon.png");
 	    JLabel closeLabel = new JLabel(closeIcon);
 	    closeLabel.setBounds(983, 11, 18, 18);
 	    closeLabel.addMouseListener(new MouseAdapter() {
@@ -80,7 +82,7 @@ public class GUI {
 	    	  frame.dispose();
 	      }
 	    });
-	    ImageIcon min = new ImageIcon("E:/Bibliotheek/Documenten/Workspaces/Agenda/img/_icon.png");
+	    ImageIcon min = new ImageIcon("res/img/_icon.png");
 	    JLabel minLabel = new JLabel(min);
 	    minLabel.setBounds(948, 11, 18, 18);
 	    minLabel.addMouseListener(new MouseAdapter() {