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 / September 2005

Tip: Looking for answers? Try searching our database.

setIconImage, image vanishes when clicked

Thread view: 
chriscalyx - 02 Sep 2005 12:50 GMT
I've used setIconImage to set a custom image on a JFrame. Problem is
that when it's clicked it disappears never to repaint. If I use
frame.setState(Frame.ICONIFIED); then the image reappears once the
frame is maximised, but if the use just clicks on the image and then
doesn't minimise the frame the image is gone never to return, is there
a way to prevent this?

Thanks
Thomas Weidenfeller - 02 Sep 2005 13:24 GMT
> I've used setIconImage to set a custom image on a JFrame. Problem is
> that when it's clicked it disappears never to repaint. If I use
> frame.setState(Frame.ICONIFIED); then the image reappears once the
> frame is maximised, but if the use just clicks on the image and then
> doesn't minimise the frame the image is gone never to return, is there
> a way to prevent this?

See Q3.4 amd Q2.4 of the FAQ.

/Thomas

Signature

The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
http://www.uni-giessen.de/faq/archiv/computer-lang.java.gui.faq/



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



©2008 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.