-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
6
-
generic
-
windows_2000
Working on Windows2000 SP4 run following test case. You would see a Frame and a Choice in it. This choice is unfocusable. (setFocusable(false))
Sometimes this choice misses repaint.
To reproduce this bug:
1. run J class. You will see a Frame with a Choice.
2. Press mouse button on this choice.
3. Choice should become opened or not depending on time between press/release.
4. if choice opened, then click on Frame's title and then drag the Frame.
5. You would see an opened choice on old coordinates on the screen.
6. if choice didn't open, then press a button on the place where "2" (choice's item) should appear.
7. you would see that choice changed its value.
This bug could be reproduces on Windows only. It reproduces with JDK1.4.2 also.
import java.awt.*;
import java.awt.event.*;
public class J extends Frame{
Choice c = new Choice();
public J() {
c.add("1"); c.add("2"); add("West", c);
c.setFocusable(false);
setSize(200, 200);
setVisible(true);
}
public static void main(String args[]) {
J test = new J();
}
}
###@###.### 2005-2-07 18:18:03 GMT
###@###.### 2005-2-22 15:22:38 GMT
Sometimes this choice misses repaint.
To reproduce this bug:
1. run J class. You will see a Frame with a Choice.
2. Press mouse button on this choice.
3. Choice should become opened or not depending on time between press/release.
4. if choice opened, then click on Frame's title and then drag the Frame.
5. You would see an opened choice on old coordinates on the screen.
6. if choice didn't open, then press a button on the place where "2" (choice's item) should appear.
7. you would see that choice changed its value.
This bug could be reproduces on Windows only. It reproduces with JDK1.4.2 also.
import java.awt.*;
import java.awt.event.*;
public class J extends Frame{
Choice c = new Choice();
public J() {
c.add("1"); c.add("2"); add("West", c);
c.setFocusable(false);
setSize(200, 200);
setVisible(true);
}
public static void main(String args[]) {
J test = new J();
}
}
###@###.### 2005-2-07 18:18:03 GMT
###@###.### 2005-2-22 15:22:38 GMT
- duplicates
-
JDK-6190728 Non focusable choice is unusable on win32
-
- Closed
-