Need help styling context menu
David Grieve
david.grieve at oracle.com
Tue Dec 11 06:52:15 PST 2012
http://javafx-jira.kenai.com/browse/RT-19435 deals with popups not getting stylesheets from a Parent. This may or may not be the same issue you mention here. It would be helpful if you could add your comments to RT-19435, if that is the appropriate bug, or you can create a new bug.
On Dec 11, 2012, at 6:19 AM, Werner Lehmann <lehmann at media-interactive.de> wrote:
> 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