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

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

    Details

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

      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)

      Description

      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.

        Attachments

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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: