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

Fix the TableViewSample application

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: fx2.1, 7u6
    • Fix Version/s: 7u6
    • Component/s: docs
    • Labels:

      Description

      Fix the following user-reported issue:
      "I copy the example file of Using JavaFX UI Controls: Table View, but when i edit a field and then sort a column and again edit the same row index, then shows me the same value of the first edition."

      Modify the startEdit() method in the TableViewSample of the UI Controls tutorial as follows:

      public void startEdit() {
                  super.startEdit();

                  //if (textField == null) {
                      createTextField();
                  //}
                  setText(null);
                  setGraphic(textField);
                  textField.selectAll();
              }

        Attachments

          Activity

            People

            • Assignee:
              aredko Alla Redko (Inactive)
              Reporter:
              aredko Alla Redko (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: