Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8093571

TextField cursor descends too much

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P4
    • None
    • None
    • javafx

    Description

      The cursor in controls like TextField descends too much below the baseline. This looks unnatural.

      I just tested the cursor height here in my browser, Google Chrome, in NetBeans, and in iWork Pages.

      The difference between the cursor of JavaFX and other application's cursors is easily revealed if you enter the text "jK". In JavaFX, the cursor descends below the lowest parts of the 'j', whereas in other applications it does not. Moreover, in JavaFX the cursor descends more below the 'K' than it raises above it, like a vertical bar character (as in 'K|'), whereas in other applications the cursor is centered around the 'K' (as in 'KI')

      The reason I am filing this issue is, if you style a text field to visually center the text vertically, the cursor no longer looks visually centered - it looks as if it is hanging too low.

      Attachments

        Issue Links

          Activity

            People

              jgiles Jonathan Giles
              risaksen Randahl Isaksen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported: