United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6456892 Text cursor is too short.
JDK-6456892 : Text cursor is too short.

Details
Type:
Bug
Submit Date:
2006-08-03
Status:
Resolved
Updated Date:
2011-01-19
Project Name:
JDK
Resolved Date:
2006-12-14
Component:
client-libs
OS:
generic
Sub-Component:
javax.swing
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
5.0
Fixed Versions:
6u1 (b01)

Related Reports
Backport:

Sub Tasks

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).
                                     
2006-09-11



Hardware and Software, Engineered to Work Together