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

Buttons in a Toolbar freeze when I use a Slider to change a Table

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 7u6
    • fx2.1, 7u6
    • javafx
    • Windows XP 32bit, JDK 7u3, JavaFX 2.2b11, also 2.1 GA and 2.2b10
      KUbuntu Linux 11.04 64bit, JDK 7u4 (32bit), JavaFX 2.2b11 (32bit)

      When I use a Slider to change a Table, unrelated Buttons in a Toolbar freeze: The button is no longer updated for hover or focus, and doesn't appear pressed when clicked. Its Tooltip still shows fine, and the registered action is still performed - it just does not give any visual feedback.
      I can unfreeze the Buttons by resizing the application window. It does not help to call "layout" or "requestLayout" on the root pane.
      This freeze happens to all Buttons in all Toolbars on the screen, but not any components (not even Buttons) outside of Toolbars.

      It does not matter whether I create a new Table and add it to my pane or add columns to an existing Table, so it appears to be unrelated to memory issues like RT-22385.
      The Table's content also does not matter, this happens with completely empty Tables.
      What does seem to matter is the number of columns in the table, I was unable to replicate the problem with 5 columns, could sometimes do it with 15 columns and had a certainty with 30 columns.

      The attached demo (Client.java) illustrates the behaviour:
      Slide the slider around, and you should soon be able to see the Button not updating.

        1. Client.java
          2 kB
        2. ButtonDoesNotUpdate.jpg
          ButtonDoesNotUpdate.jpg
          36 kB
        3. ButtonUpdated.jpg
          ButtonUpdated.jpg
          34 kB
        4. ClientWithButtons.java
          2 kB

            kwwong Kinsley Wong (Inactive)
            ureupkejfx Urs Reupke (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: