This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to change Java icon in frame ?
 
Similar Threads
change the icon of .jar file
How to change icon
Changing the coffee mug icon on the frame
change java icon swing
How to change the icon of the frame