ContextMenu styling (esp. for MenuButton) (original) (raw)

David Grieve david.grieve at oracle.com
Wed Oct 24 08:23:05 PDT 2012


Some (possibly) related discussions from OTN: https://forums.oracle.com/forums/thread.jspa?threadID=2451829 https://forums.oracle.com/forums/thread.jspa?threadID=2354253

On Oct 24, 2012, at 6:55 AM, Werner Lehmann wrote:

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.

Werner 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.

David Grieve | Principal Member of Technical Staff Mobile: +16033121013 Oracle Java Client UI and Tools Durham, NH 03824 Oracle is committed to developing practices and products that help protect the environment



More information about the openjfx-dev mailing list