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 HELP - JDialogs! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "HELP - JDialogs!" Watch "HELP - JDialogs!" New topic

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.
Martin webster

Joined: Jun 20, 2001
Posts: 20
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....
dlg.setImageIcon(new ImageIcon("image1.gif"));

I agree. Here's the link:
subject: HELP - JDialogs!
It's not a secret anymore!