-
Bug
-
Resolution: Fixed
-
P3
-
6
-
b14
-
x86
-
linux
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2149664 | 6u4 | Anton Tarasov | P4 | Resolved | Fixed | b01 |
Reproduced on Redhat Enterprise Linux 4 (Update 4) with 1.6.0-b105.
On MAWT TextArea or TextField, cursor keeps blinking after focus moved to a native window.
Test instruction is as follows:
1. Compile and launch the sample code with MToolkit.
$ javac TextAreaTest
$ AWT_TOOLKIT=MToolkit java TextAreaTest
=> Two TextArea components will appear.
2. Move focus to "TextArea 1".
3. Move focus to another native window, like terminal.
=> Cursor is still blinking. <= Problem.
4. Move focus from the native window to "TextArea 2".
=> Both TextArea 1 and 2 show blinking cursor. <= Problem.
Expected result:
Cursor should be pale color and stop blinking, after focus loses.
Focus change between these TextArea components, it works as expectedly.
Additional Information:
Motif's text widget doesn't get FocusOut event.
The problem didn't occur on Java5. It introduced from Java6.
======== TextAreaTest.java ====================================
import java.awt.*;
public class TextAreaTest {
public TextAreaTest(String title) {
Frame frame = new Frame(title);
frame.add(new TextArea());
frame.setSize(300, 100);
frame.setVisible(true);
}
public static void main(String[] args) {
TextAreaTest t1=new TextAreaTest("TextArea 1");
TextAreaTest t2=new TextAreaTest("TextArea 2");
}
}
On MAWT TextArea or TextField, cursor keeps blinking after focus moved to a native window.
Test instruction is as follows:
1. Compile and launch the sample code with MToolkit.
$ javac TextAreaTest
$ AWT_TOOLKIT=MToolkit java TextAreaTest
=> Two TextArea components will appear.
2. Move focus to "TextArea 1".
3. Move focus to another native window, like terminal.
=> Cursor is still blinking. <= Problem.
4. Move focus from the native window to "TextArea 2".
=> Both TextArea 1 and 2 show blinking cursor. <= Problem.
Expected result:
Cursor should be pale color and stop blinking, after focus loses.
Focus change between these TextArea components, it works as expectedly.
Additional Information:
Motif's text widget doesn't get FocusOut event.
The problem didn't occur on Java5. It introduced from Java6.
======== TextAreaTest.java ====================================
import java.awt.*;
public class TextAreaTest {
public TextAreaTest(String title) {
Frame frame = new Frame(title);
frame.add(new TextArea());
frame.setSize(300, 100);
frame.setVisible(true);
}
public static void main(String[] args) {
TextAreaTest t1=new TextAreaTest("TextArea 1");
TextAreaTest t2=new TextAreaTest("TextArea 2");
}
}
- backported by
-
JDK-2149664 On MAWT TextArea, cursor keeps blinking after focus moved to a native window.
-
- Resolved
-
- relates to
-
JDK-6465038 On MToolkit, cannot input any character on multi window environment
-
- Resolved
-
-
JDK-6606579 MToolkit:Focus is lost and no further response to key press (keys TAB/Space)
-
- Closed
-
-
JDK-6609494 On MAWT TextArea, cursor keeps blinking after focus moved to a native window.
-
- Closed
-