How do I remove the java icon from JDialog? I know how to do this for a
JFrame, but can't find a workaround from JDialog. I do not want to change
the icon, I simply want to remove it. How?
- Manish
Manish Hatwalne - 09 Dec 2003 10:43 GMT
BTW,
For "n" no of reason, the dialog does not have a parent, so....
- Mansih
...wrote in message news:br487c$27thhd$1@ID-107123.news.uni-berlin.de...
> How do I remove the java icon from JDialog? I know how to do this for a
> JFrame, but can't find a workaround from JDialog. I do not want to change
> the icon, I simply want to remove it. How?
>
> - Manish
Manish Hatwalne - 09 Dec 2003 18:04 GMT
Well, I found a dirty hack, it works nevertheless...
Here it is for anyone who might need it -
JFrame dummyFrame = new JFrame();
Image icon = new BufferedImage(1, 1,
BufferedImage.TYPE_INT_ARGB_PRE);
dummyFrame.setIconImage(icon);
And use this dummyFrame as a parent for your JDialog. It works!!! :-)
- Manish
> How do I remove the java icon from JDialog? I know how to do this for a
> JFrame, but can't find a workaround from JDialog. I do not want to change
> the icon, I simply want to remove it. How?
>
> - Manish