Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / December 2003

Tip: Looking for answers? Try searching our database.

Remove java icon from JDialog

Thread view: 
Manish Hatwalne - 09 Dec 2003 10:40 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.