Hi Gary,
simply set it:
//custom icon:
ImageIcon icon = .. // put your image icon in here
if (icon != null) myFrame.setIconImage(icon.getImage());
And just a hint: you cannot do this with dialogs. Instead a dialog will use its
owner's icon.
Regards,
Stefan
"Singh,Gary - PLANO" wrote:
> Hi :
>
> What is the best way to replace the custom Java Cup image on top of a JFrame
> with your own .gif image.
>
> Thanks and Regards,
> Gary Grewal
>
> _______________________________________________
> Swing mailing list
> [EMAIL PROTECTED]
> http://eos.dk/mailman/listinfo/swing
_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing