aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes how  to change Java icon in frame ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how  to change Java icon in frame ?" Watch "how  to change Java icon in frame ?" New topic
Author

how to change Java icon in frame ?

Calanthe Wei
Ranch Hand

Joined: Oct 27, 2001
Posts: 42
Hi, All
I build up a frame with swing and want to change the Sun java icon on the left top of the frame to other image. Did anyone happen to know how to do that?
I really appreciate it.

Calanthe
Alex Ku
Ranch Hand

Joined: Jan 15, 2002
Posts: 47
Hi,
JFrame f = new JFrame();
f.setIconImage(new ImageIcon("imageFile").getImage());
kawaii
 
Consider Paul's rocket mass heater.
 
subject: how to change Java icon in frame ?
 
Similar Threads
Changing the coffee mug icon on the frame
change java icon swing
How to change the icon of the frame
How to change icon
change the icon of .jar file