File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes How to set an Image Icon in the title bar of a JPanel 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 set an Image Icon in the title bar of a JPanel" Watch "How to set an Image Icon in the title bar of a JPanel" New topic
Author

How to set an Image Icon in the title bar of a JPanel

Debendra nayak
Greenhorn

Joined: Mar 28, 2008
Posts: 7
Hi,
I am using JPanel to design my application.
My application shows the java icon in the title bar while running.
I want to set an image icon in place of java icon along with the title
in the title bar.So, could anyone please help me to solve this issue.

Thanks & Regards,
Debendra
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10171
    
    8

Originally posted by Debendra Blr:

I am using JPanel to design my application.
My application shows the java icon in the title bar while running.
I want to set an image icon in place of java icon along with the title
in the title bar.So, could anyone please help me to solve this issue.

Thanks & Regards,
Debendra


JFrame#setIconImage(Image image)


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to set an Image Icon in the title bar of a JPanel
 
Similar Threads
J2me Application Icon and title bar ImageIcon
How to set icon at net beans
HELP - JDialogs!
changing the java coffee cup icon?
Replacinf Java cup icon of JFrame and changing default folder look in JTree