How about something like this.
final URL url = ClassLoader.getSystemClassLoader().getResource("mercuryLogo.jpg");
final Image icon = Toolkit.getDefaultToolkit().getImage(url);...
Type: Posts; User: Json
How about something like this.
final URL url = ClassLoader.getSystemClassLoader().getResource("mercuryLogo.jpg");
final Image icon = Toolkit.getDefaultToolkit().getImage(url);...
I dont know how the resizing works on icons to be honest, however when it comes to putting a specific location down you might not want to do that when you ship your program so you need to make sure...
What errors are you getting if any?
Edit: make sure the image is in the right path or on the classpath. If you try giving a full path to the image it will most likely work as in...