How do you change the coffee cup icon that appears in the top corner of frames?

John Zukowski

The setIconImage() method of the Frame class permits you to alter the icon displayed.

Image image = ...;
aFrame.setIconImage(image);
See How do I display an Image in an Applet or Application? for how to load the image.
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact