aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Swing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Swing" Watch "Swing" New topic
Author

Swing

Asmita Rane
Greenhorn

Joined: Jan 02, 2009
Posts: 1
how to remove coffee cup image from left top of JFrame & JDialog, & showing our own custom image at that place.
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
frame.setIconImage(...);
Olivier Legat
Ranch Hand

Joined: Nov 17, 2007
Posts: 176

In addition to what Micheal said. You can use the javax.swing.ImageIcon class to create an ImageIcon from a file in your computer using the constructor ImageIcon(String). Get use the method getImage() to use a parameter in Frame.setIconImage(Image)



Olly
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10451
    
    8

Hi Asmita,
Welcome to the Ranch. We are happy to have you here

To get the most out of the Ranch, it would be a good idea to use a meaningful title for your thread.
Having a thread titled "Swing" in the Swing forum is hardly intuitive for the readers

It might also be a good idea to check this out.

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Swing