Need help styling context menu

Werner Lehmann lehmann at media-interactive.de
Tue Dec 11 03:19:52 PST 2012


While we're at it, is it still necessary to do the following to get a 
contextmenu styled?

contextmenu.getScene().getRoot().getStylesheets().addAll(...mystylesheet...);

It's not very obvious and there's always extra code required when 
defining a contextmenu in FXML.

Werner

On 10.12.2012 21:19, Pedro Duque Vieira wrote:
> Hi,
>
> Need help styling context menu using CSS. First the CSS reference guide has
> nothing on this, second consulting caspian.css won't help because there's
> very little code for this class.
>
> What I'm struggling with right now is in defining an alternate look for the
> separator line (on the context menu), from what I've seen so far I can say
> that it is not consistent with the other separators because with the same
> lines of CSS I can't get it to have the same black colored solid look.
>
> Can someone give me some guidelines on this?
>
> Thanks in advance, :)


More information about the openjfx-dev mailing list