This week's book giveaway is in the Other Languages forum. We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line! See this thread for details.
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
posted 15 years ago
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"));