Cannot style Choicebox Dropdown

XMLWordPrintable

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

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

      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.

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

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

              Created:
              Updated:
              Resolved:
              Imported: