• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Debendra nayak
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10967
11
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic