File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 10825

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:
subject: Swing
jQuery in Action, 3rd edition