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

Fix the TableViewSample application

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 7u6
    • fx2.1, 7u6
    • docs

      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();
              }

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

              Created:
              Updated:
              Resolved:
              Imported: