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

Cannot style Choicebox Dropdown

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: fx2.0.2
    • Fix Version/s: 8
    • Component/s: javafx
    • Environment:

      Windows 7, Windows XP, netbeans 7.2 and 7.3, Scenebuilder 1.0 and 1.1.1

      Description

      I am trying to change the background color and hover color of the drop down menu that appears in a choice box. when I preview the attached code in SceneBuilder, the style is applied properly: the drop down has a red background and the hover over color is salmon. The other rules are applied as well.

      If I compile the code and run it, the dropdown appears in default grey and the hover over in default blue.

      The .context-menu and #choice-box-menu-item:hover css selector rules are not being applied in compiled code.

        Attachments

        1. Compiled.png
          Compiled.png
          7 kB
        2. fromScenebuilder.png
          fromScenebuilder.png
          6 kB
        3. JavaFXApplication.java
          1 kB
        4. sample.css
          0.7 kB
        5. Sample.fxml
          0.9 kB
        6. Sample.fxml
          1.0 kB
        7. SampleController.java
          0.7 kB

          Activity

            People

            Assignee:
            psomashe Parvathi Somashekar (Inactive)
            Reporter:
            ethompsonjfx Edward Thompson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved:
              Imported: