or if you know the name of file do it directly:!!! setIconImage(Toolkit.getDefaultToolkit().getImage("image.gif")); alex from http://javafaq.nu
Brian Beare
Greenhorn
Joined: Feb 23, 2004
Posts: 1
posted
0
Thank you Alexander - your suggestion, unlike some others that use ImageIcon, also work when scripting Java in the Mozilla Rhino JavaScript interpreter.
Blue Boy Welcome to Javaranch! We don't have too many rules around here but we do have a Naming Policy. Please adjust your display name accordingly. You can change your display name here Thanks and hope to see you around.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: Setting the icon on the main frame of an application