Java GUI Question

Status
Not open for further replies.
I can't believe I'm doing your work for you. If you want to be a productive java programmer, you absolutely have to know how to find things in the API docs on your own. I had no idea if this could be done, but 5 mouse clicks later I found it in the javadocs for JLabel. Go figure.

code:<HR>
Code:
label.setIcon(new ImageIcon("otherfilename.jpg"));
 
Status
Not open for further replies.