Re: JDK 1.6 and JFrame icon



On 27.06.2006 16:17 Roland de Ruiter wrote:
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.


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.util.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

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



Relevant Pages

  • Re: Problems hiding the main form and displaying only a tray icon
    ... > I want my application to run most of the time as just an notify icon> visible in the system tray, with some dialogs windows that open if the> user selects an option from the context menu on the tray icon. ... It was all fine until I noticed that the> form was visible in the Alt-Tab menu and once you had alt-tabbed to it> there was no way of hiding it again:(> ... > But today I have noticed that now I can no longer minimize or hide the> form it appears as a minizied tool window in the bottom left of my desktop> when the application is running and even worse if the user double clicks> on the title bar the window expands to its normal size, apart from the> form is empty and there's no way to minimize it again! ...
    (microsoft.public.dotnet.languages.csharp)
  • Problems hiding the main form and displaying only a tray icon
    ... I want my application to run most of the time as just an notify icon ... visible in the system tray, with some dialogs windows that open if the user ... FixedToolWindow then it was no longer visible in the Alt-Tab menu, ... title bar the window expands to its normal size, ...
    (microsoft.public.dotnet.languages.csharp)
  • Hidding a window and preventing Alt-Tabbing to it
    ... user interaction with my application to come from interacting with a notify ... icon with a context menu in the system tray. ... as its still visible in the Alt-Tab menu. ... Does anyone know of any way to completely hide a window visibly(so no part ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Windows Explorer wont display
    ... My Explorer has suddenly stopped displaying. ... I can tell that Explorer is running because it appears as active under Task Manager, I just can't see it anywhere. ... Also, if I repeadely click the icon, I can see multiple instances running in Task Manager, just no display. ... Shortcut properties allow the program to start in Normal Window, Maximized, and Minimized, but all 3 produce the same results. ...
    (microsoft.public.windowsxp.basics)
  • Re: Hidding a window and preventing Alt-Tabbing to it
    ... Use Form.Hideto hide the window rather than minimizing it. ... Danielb wrote: ... > icon with a context menu in the system tray. ... as its still visible in the Alt-Tab menu. ...
    (microsoft.public.dotnet.framework.windowsforms)