-
Bug
-
Resolution: Fixed
-
P4
-
1.4.0, 1.4.1, 1.4.2
-
tiger
-
generic, x86
-
generic, linux, windows_xp
With the current implementation of DefaultCaret, it is impossible to distinguish between a DefaultCaret having its visibility set to false and the DefaultCaret blinking out temporarily. The problem is that the implementation for the blink uses the same visibility property that setVisible uses.
This is causing problems with DnD when we attempt to save, change, and then restore the caret visibility on a component when we enter it and exit it for a drag operation. Depending on when we enter the field, a truly visible caret may return false for its visibility because it is mid-blink. As a result, when we restore it, we may incorrectly set its visibility to false.
This is causing problems with DnD when we attempt to save, change, and then restore the caret visibility on a component when we enter it and exit it for a drag operation. Depending on when we enter the field, a truly visible caret may return false for its visibility because it is mid-blink. As a result, when we restore it, we may incorrectly set its visibility to false.
- duplicates
-
JDK-4712076 Swing DnD: JTextArea caret disappears after dragging text
- Closed
-
JDK-4812978 MantisB14:Stylepad Demo: Caret disappears after drag and drop of text
- Closed
- relates to
-
JDK-7083457 Incomplete specification for javax/swing/text/DefaultCaret.html#setVisible(boolean)
- Resolved
-
JDK-4853984 1.5b04 REGRESSION: caret doesn't flash in Motif LAF text
- Closed