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

JAVAFX TABLEVIEW VALUES STOP UPDATING WHEN VALUES ARE INVALIDATED

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 7-pool
    • 7u45
    • javafx
    • system configuration
      ====================
      OS: Windows 7
      App: NetBeans IDE 7.4
      Java: 7u45

      PROBLEM DESCRIPTION
      ===================
      Customer reports an issue with Java 7u25 and 7u45, where once the focus
      leaves a scene, the scene no longer updates the data when the focus returns
      to the scene.

      Issue Clarification
      ===================
      Open a new JavaFX project in NetBeans using the attached testcase,
      TableRowValueGcBug.java.

      Part A -- Run the project to open a GUI named "Table Row Value Bug". The
      upper left corner of the GUI says "Step 1". Click "Click Me!" button several
      times. The data in the text box and the table in the scene updates correctly
      every time. This is the expected behaviour.

      Part B

      1. Click "Next" button once. The table dissappears from the GUI.

      2. Click "Click Me!" a few times. The text box updates, as expected. Click
      "Next". "Step 3" shows in the upper left corner and the table reappears in
      the GUI. The "Next" button is dimmed.

      3. Click "Click Me!". The text box updates while the table remains unchanged.
      This is the problem raised by the customer.

      The customer suspects the listeners are being garbage collected or if they
      just get deregistered during step 2, but nothing seems to be listening
      anymore once you get to step 3.

      WORKAROUND
      ==========
      The customer says the "best" workaround is to remove and re-add all of the items in the table when the table is re-added to the Scene. This solves the problem, but it's very annoying for a workaround, and definitely inefficient.

            bae Andrew Brygin
            tstatt Terry Statt (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: