[Logo]
Forums Register Login
How do I add a custom icon to my Swing app?
It is using the default Sun Java cup. Also, it will be wrapped up in a jar file. I don't know if that makes a difference.
You can call the setIconImage method on the JFrame.

It takes in an Image object.
If you are going to load the image from a jar you could use -



HTH,
Aaron R>
Thanks, Aaron
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards



All times above are in ranch (not your local) time.
The current ranch time is
Dec 16, 2017 02:13:36.