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 HELP - JDialogs! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "HELP - JDialogs!" Watch "HELP - JDialogs!" New topic
Author

HELP - JDialogs!

Dave Donohoe
Ranch Hand

Joined: May 16, 2000
Posts: 73
Hi all - hope someone can help.
I Have a few JDialog boxes in my app & I cant set the icon on the Title Bar of the JDialog. I tried using this.setImageIcon(Image myImage) however I could not create an Image from the gif that I want to use.
ANY IDEAS??
D
Martin webster
Greenhorn

Joined: Jun 20, 2001
Posts: 20
Hi,
If you want to display a gif, then the easiest approach to take is to create an ImageIcon, whose constructor takes the name of the image....
i.e
dlg.setImageIcon(new ImageIcon("image1.gif"));


Martin
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: HELP - JDialogs!