wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Swing" Watch "Swing" New topic


Asmita Rane

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
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)

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10175

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!]
subject: Swing
Similar Threads
Loading image file
Getting rid of Java Icon on the upper left hand corner
Easy one
Unsupported Color Conversion Request
converting png to tiff and character recognition with tesseract