Name: gm110360 Date: 01/21/2003
FULL PRODUCT VERSION :
java version "1.4.1_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01)
Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode)
FULL OPERATING SYSTEM VERSION :
Microsoft Windows XP [Version 5.1.2600]
A DESCRIPTION OF THE PROBLEM :
If taskbar's property "Group similar taskbar buttons" is on
then there is a problem with application's icon and title.
The attached example demonstrates the problem. When an
application has many frames (enough to group them at
taskbar) then application's icon is replaced with "default"
(small white window) icon. The title is also changed to "javaw".
I am reporting this bug against Windows version of JDK, but
the same problem exists under Linux (KDE 3.0.5). The only
difference is that under KDE the icon is default X icon and
title is "java.lang.Thread"
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Be sure that "group similar taskbar buttons" property is on
2. Compile and run the attached example
3.
EXPECTED VERSUS ACTUAL BEHAVIOR :
1. Taskbar button which represents group of application
frames must have the application's icon ("streaming cap" in
our case).
2. Tile should not be "javaw". It should be "Test Frame"
because all application's frame has the same title.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import javax.swing.*;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
/**
* @author Vladimir Kondratyev
*/
public class Test {
public static void main(String[] args){
MyWindowListener windowListener=new MyWindowListener();
JFrame frame=new JFrame("Test Frame");
frame.show();
frame.addWindowListener(windowListener);
for(int i=0;i<10;i++){
JFrame _frame=new JFrame("Test Frame");
_frame.addWindowListener(windowListener);
_frame.show();
}
}
private static final class MyWindowListener extends WindowAdapter{
public void windowClosing(WindowEvent e){
System.exit(0);
}
}
}
---------- END SOURCE ----------
(Review ID: 180177)
======================================================================