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

TextFieldTreeCell builds a TextField over the graphic part of the TreeCell

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 7u40, 8
    • Fix Version/s: 8
    • Component/s: javafx

      Description

      A TreeCell defines a graphic and a label.
      The Labeled part can be editable using the TextFieldTreeCell.
      But when you double click to start editing, the TextField is located over the graphic.

      I think this is not correct, and the TextField should be displayed on the editable part only, that is the Labeled.
      This will avoid to get the editable text shifted to the left when we start editing, then shift back to the right when we commit.
      See attached screen shot + simple test case attached.

        Attachments

        1. finder.png
          finder.png
          77 kB
        2. sb1.png
          sb1.png
          17 kB
        3. sb2.png
          sb2.png
          16 kB
        4. Test.java
          1 kB

          Activity

            People

            • Assignee:
              jgiles Jonathan Giles
              Reporter:
              slions Sandra Lions-piron
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved:
                Imported: