Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: 8u51
    • Fix Version/s: 8u60
    • Component/s: javafx
    • Labels:
    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      windows_7

      Description

      FULL PRODUCT VERSION :
      JDK 1.8.0_51

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [Version 6.1.7601]

      A DESCRIPTION OF THE PROBLEM :
      I have an application where I use a TabPane from JavaFX.
      I have two Tabs, the second one is disabled by my application.

      I select the enabled Tab-header in the TabPane and after this I use the shortcut for tab-back (ctrl+shift+tab).
      Then the disabled Tab is getting selected.

      ADDITIONAL REGRESSION INFORMATION:
      java version "1.8.0_51"

      - JDK 1.8.0_51 is included within Eclipse

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      - create a TabPane
      - add 2 Tabs
      - disable the second Tab
      - select the first Tab-header
      - press ctrl+shift+tab (shortcut for tab-back)
      -> Disabled tab is getting selected

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Disabled Tab should not be selectable
      ACTUAL -
      Disabled Tab got selected

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      No crash logs

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      @FXML private TabPane tabPane;

      @FXML private Tab tab1;
      @FXML private Tab tab2;


      private void initTabs() {
        tabPane.getSelectionModel().select(tab1);
        tab2.setDisable(true);
      }

      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      Maybe the first answer in this post from stackoverflow:
      http://stackoverflow.com/questions/19025268/javafx-tabpane-switch-tabs-only-when-focused

        Attachments

          Activity

            People

            • Assignee:
              jgiles Jonathan Giles
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: