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

Cannot style Choicebox Dropdown

    XMLWordPrintable

Details

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

        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: