ContextMenu styling (esp. for MenuButton)

Werner Lehmann lehmann at
Wed Oct 24 03:55:58 PDT 2012

I can answer this part now: put an invalidation listener on the scene 
property of the node used for CustomMenuItem. Once that node gets a 
scene, it can be used to add a stylesheet. Not really straightforward 
though. I'd still prefer if the context menu could just use the 
stylesheet of its MenuButton.


On 23.10.2012 18:12, Werner Lehmann wrote:
> This works ok but styling is difficult - how can I style the
> menuitem/contextmenu used by the MenuButton skin? Apparently I cannot
> access it from the MenuButton control.

More information about the openjfx-dev mailing list