1 Reply Latest reply on Feb 22, 2013 8:00 AM by 956927

    How to set css effect on choicebox items

      i've got two questions.

      1) How can i edit an "Item" of a choicebox with css? I've figured out that i can easily give my choicebox like a other background color with it's ID. But i dont know how i do it with the items in a choicebox.

      2) And how do i implement, that the choicebox items are shown when i only hover over the choicebox?

      Thanks in advance!
        • 1. Re: How to set css effect on choicebox items
          Hy there,

          best way to start styling is to have a look at the default styles defined in caspian.css located in jfxrt.jar
          This is the best doku about css styling in javaFX beyound the css reference guide: http://docs.oracle.com/cd/E17802_01/javafx/javafx/1.3/docs/api/javafx.scene/doc-files/cssref.html

          2.) I think you could set the items with -fx-color: transparent as they should dissapear on hover if you manipulate the style
          .choice-box .menu-item .hover{

          also try effects on
          .choice-box:hover {