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 / June 2006

Tip: Looking for answers? Try searching our database.

JDK 1.6 and JFrame icon

Thread view: 
Thomas Kellerer - 27 Jun 2006 14:17 GMT
Hello,

I'm testing my application using JDK 1.6 (to make sure it will also work
with that).

There is one thing that is not working properly: my icon that I set for
the main window (JFrame) is not displaying under Windows when using
Alt-Tab. I does display fine in the window itself and in the task bar,
but not when I use Alt-Tab.

Any idea? Maybe a know bug in JDK 1.6 (I have noticed this with NetBeans
as well, so it seems to be related to the JDK and not necessarily to my
program)

Thanks in advance
Thomas

Signature

It's not a RootKit - it's a Sony

Roland de Ruiter - 27 Jun 2006 15:17 GMT
> Hello,
>
[quoted text clipped - 12 lines]
> Thanks in advance
> Thomas

Maybe a bug related to the new 1.6 feature which allows you to specify
multiple icon images. The platform chooses the best image where needed,
e.g. a 16x16 image as title bar icon, and a 32x32 one as Alt-Tab icon
<http://java.sun.com/javase/6/docs/api/java/awt/Window.html#setIconImages(java.ut
il.List
)>
Signature

Regards,

Roland

Thomas Kellerer - 28 Jun 2006 07:16 GMT
>> There is one thing that is not working properly: my icon that I set
>> for the main window (JFrame) is not displaying under Windows when
[quoted text clipped - 5 lines]
> e.g. a 16x16 image as title bar icon, and a 32x32 one as Alt-Tab icon
> <http://java.sun.com/javase/6/docs/api/java/awt/Window.html#setIconImages(java.ut
il.List
)>

I broke it down to a reproducable test case now. It does seem to be a
bug in 1.6 When using setIconImage() everything seems fine until you
open a modal dialog (e.g. a JFileChooser). After that the frame icon
will revert back to the default Java icon

Thomas

Signature

It's not a RootKit - it's a Sony



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.