> Hello,
> I'm writing an application where the main screen is a JFrame, lets call it
> myJFrame.
> myJFrame has an icon shown in the upper left hand corner, set by:
> setIconImage(myIcon);
> Sometimes I invoke different dialog boxes (descendants from JDialog) from
> myJFrame.
> When I invoke the dialog boxes, I send the parent myJFrame to the
> constructor of the dialog box classes.
> The first method called in the dialog box constructors is:
> super(parent);
> I expected the icon shown in the upper left hand corner of myJFrame to
> show up in the dialog boxes.
> However, this is not always the case. In some dialog boxes it works fine,
> but in one case no icon at all shows up,
> so that the dialog box title starts on the very left.
> I would expect that at least the regular smoking Java cup icon would be
> there.
> 
> According to Swing, by Robinson/Vorbiev: 
> "If a valid parent is used, the dialog's icon will be that of the parent
> frame set with the setIconImage() method."
> I'm pretty sure the parent is valid, since I'm using "this" from myJFrame.
> 
> Has anybody had a similar problem, and if so, how was it resolved?
> Is there a way, to remove the icon, which I might have triggered?
> 
> Sincerely,
> Per
> PS. I'm running JDK 1.3, on Windows NT 4.0, Service Pack 6
_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing

Reply via email to