requestFocus() does notwrok correctly after window is iconized and recovering.
This issue happens with JDK1.3.0_02 and JDK1.3.1-b22, but does not occur with
JDK1.4-b60.
1. how to repoduce
1) Compile the attached program
2) Invoke the command "appletviewer Iconize.html"
-> You can see the pane which has the button, "DISPLAY WINDOW"
3) Click the button
-> You can see another window which has RED square
and the tittle "Java Applet Window" at the bottom.
4) Click iconizing button.
-> the windows wiil be iconized and the icon will show up
on the task bar.
5) Click the icon on the task bar
-> the window will recover.
At the 5th step, we expect the square becomes RED, but actually BLUE with
JDK1.3.0_02 and JDK1.3.1-b22.
(When the "Java Applet Window" gets focus, the square turns RED.
and losts focus, that turns BLUE.)
I recommend to execute this program with JDK1.4-b60 in order to know
the correct behavior.
2. Configration
MPU : Pentium III 400[MHz]
Mem.: 256[MHz]
OS : WindowsNT 4.0 (SP5, Japanese)
JDK. Ver :
-JDk1.3.0_02
java version "1.3.0_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_02)
Java HotSpot(TM) Client VM (build 1.3.0_02, mixed mode)
-JDK1.3.1-b22
java version "1.3.1-rc2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-rc2-b22)
Java HotSpot(TM) Client VM (build 1.3.1-rc2-b22, mixed mode)