When I use this code: public class SwingSerial extends JDialog {
public SwingSerial(JFrame frame) {
super(frame, true);
ImageIcon image = new ImageIcon("WizardTiny.GIF");
frame.setIconImage(image.getImage());
setTitle( "DARS Serialize D/B" ); The Title in the frame is changed, and the default (
java cup) icon is gone. No errors are thrown. There is just no WizardTiny.GIF on the frame. If I comment out the ImageIcon line and the frame.setIconImage lines I get the java cup.
If I comment out just the ImageIcon line it wants an image defined.
If I comment out just the frame.setIconImage I get the java cup.
Where is the disconnect in what I am doing?
java 1.5.0_04