I have been trying to make my program load the images while using web start with no success.
The following code is inside an extended JButton class. Image is a string containing the address of the desired image ("0.jpg", for example), I know that this would only work if the image is in the root.
public void displayIcon ()
{
setIcon(new ImageIcon(image));
}
I tried using urls but they keep on being null.
Any ideas xD?