This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft 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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "ICONs in JFrame" Watch "ICONs in JFrame" New topic
Author

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.

--
./pope
[the_mindstorm]


blog - InfoQ.com
kiran raja
Greenhorn

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

frame.setFrameIcon(new ImageIcon(image));

call this method in the constructor.


-Kiran
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ICONs in JFrame
 
Similar Threads
No Banner for JSF book promo?
Testing
Idle's mind is a devils workshop
Brain Teasers
May 31, 2001 - test Job Offer $xxx,xxx Colorado Springs