This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes ICONs in JFrame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "ICONs in JFrame" Watch "ICONs in JFrame" New topic

ICONs in JFrame

Sameera Abeysinghe
Ranch Hand

Joined: Nov 15, 2004
Posts: 104
Hi all,
Can any one tell me how can I set the icon of my application
I am using JDK 1.4 and JFrames
Thanks a LOT.
Alexandru Popescu
Ranch Hand

Joined: Jul 12, 2004
Posts: 995
Here is a thread that may help you: link.


blog -
kiran raja

Joined: May 11, 2004
Posts: 22
the method to set frame Icon is :

frame.setFrameIcon(new ImageIcon(image));

call this method in the constructor.

It is sorta covered in the JavaRanch Style Guide.
subject: ICONs in JFrame
Similar Threads
May 31, 2001 - test Job Offer $xxx,xxx Colorado Springs
No Banner for JSF book promo?
Brain Teasers
Idle's mind is a devils workshop