JDK-6456892 : Text cursor is too short.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 5.0
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2006-08-03
  • Updated: 2011-01-19
  • Resolved: 2006-12-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7
6u1 b01Fixed 7Fixed
Description
Look at a text component (JTextField/JTextArea) in any look and feel. Select some text. Notice that the flashing caret stops short of the bottom of the selection. This is quite ugly and particularly noticeable under Windows L&F. This also affects editable JComboBoxes.

Comments
EVALUATION This is a regression from fix for 5048771 Text caret visibility very poor in GTK Style L&F with high-contrast/large print in Tiger. As part of this fix, g.drawLine(r.x, r.y, r.x, r.y + r.height - 1); was changed to g.fillRect(r.x, r.y, paintWidth , r.height - 1); The problem is, the former call paints a line of height (r.height), and the latter one a line of height (r.height-1).
11-09-2006