Hello rune-server so today i am going to show you all how to change the java coffee cup icon now before you say it has been released before The answer to that is yes it has but this is better you may ask why and here it is here is the old tutorial
http://www.rune-server.org/programmi...ffee-icon.html
http://www.rune-server.org/runescape...java-icon.html
Now on the old once you did not get the custom icon until you have downloaded the cache witch does not look very professional my version makes it so you dont have to download the cache and when you update the image on the site you are getting it from it will update on its own and you don't have to do anything
Difficulty: 1/10
Files Edited: RsFrame/Jframe
Go into RsFrame or Jframe.java look for Inside that method above your client title add this
Code:
URL url2 = null;
boolean updateIcon = true;
try {
url2 = new URL("https://dl.dropboxusercontent.com/s/29ea8p9jpb0bpk5/icon.png");
} catch (MalformedURLException ex) {
updateIcon = false;
ex.printStackTrace();
}
if (update) {
System.out.println("Icon updated.");
Image bimg = Toolkit.getDefaultToolkit().getImage(url2);
this.setIconImage(bimg);
}
The only thing you will have to change is the link to your sprite witch i have highlighted in Red
Next add this import at the top
Code:
import java.net.MalformedURLException;
import java.net.URL;
You could make this work for other things like your cursor
Fixed