/**
* Method to get an ImageIcon from the supplied path
* @param path - The path to your image
* @param comp - the container where the label is placed
* @return ImageIcon
*/
public static ImageIcon getImageIcon(JComponent comp, String path){
return new ImageIcon(comp.getClass().getResource(path));
}
thE_29 hat gesagt.:Warum nimmste nicht einfach new ImageIcon("...") dann brauchste auch keinen Mediatracker da der das Bild sowieso komplett ladet!