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

ComboBox does not display tooltip when being disabled

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 8u40
    • javafx
    • x86_64
    • windows_7

      FULL PRODUCT VERSION :
      java version "1.8.0_40"
      Java(TM) SE Runtime Environment (build 1.8.0_40-b26)
      Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [Version 6.1.7601]

      A DESCRIPTION OF THE PROBLEM :
      When a ComboBox is deactivated programmatically with

      comboBox.setDisable(true);

      then the tooltip is not displayed anymore. This is necessary since the size of a ComboBox can extend the area it is displayed. Selected items cannot be read then anymore. We regard this as a general bug since other controls (e.g. TextField) show the same behaviour.

      ADDITIONAL REGRESSION INFORMATION:
      java version "1.8.0_40"
      Java(TM) SE Runtime Environment (build 1.8.0_40-b26)
      Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1.) generate a ComboBox with items
      2.) generate a Tooltip and set it on the combBox generated in step 1
      3.) disable the comboBox
      4.) start the program and verify the tooltip does not pop up

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The tooltip should be displayed
      ACTUAL -
      No tooltip is shown when the control is disabled

      REPRODUCIBILITY :
      This bug can be reproduced always.

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

              Created:
              Updated:
              Resolved: