I want to change the Icon of an JFrame
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   pranesh_sharma
Posted On:   Tuesday, October 16, 2001 11:37 PM


How can i change the Title bar Icon of an JFrame which is an Java Coffe e cup . Is it possible to change that icon

Re: I want to change the Icon of an JFrame

Posted By:   Maheshwar_Reddy  
Posted On:   Wednesday, October 17, 2001 02:19 AM

hi,

Yes, it is possible to change the imageicon of the frame. U need to call the setIconImage() method on the containter (frame or any other type of container).

// sample code....................
frame.setImageIcon (Toolkit.getDefaultToolkit().getImage (imageName));


cheers,
Mahesh.
About | Sitemap | Contact