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

Cannot style Choicebox Dropdown

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P4
    • 8
    • fx2.0.2
    • javafx
    • 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. JavaFXApplication.java
          1 kB
        2. Sample.fxml
          1.0 kB
        3. SampleController.java
          0.7 kB
        4. sample.css
          0.7 kB
        5. Sample.fxml
          0.9 kB
        6. Compiled.png
          Compiled.png
          7 kB
        7. fromScenebuilder.png
          fromScenebuilder.png
          6 kB

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:
              Imported: