MenuButton arrow position

Werner Lehmann lehmann at
Mon Oct 29 05:29:01 PDT 2012

Hi Richard,

I filed a bug for this:

Probably the arrow is positioned like this because it makes sense for 
the SplitMenuButton. However, without a "split"...  We could work around 
it with some css. Not pretty but functional for now.

By the way, there is some curious difference to the ContextMenu 
internally used by the MenuButton. In a JFXPanel, a ContextMenu does not 
autoHide if the users click on some unrelated Swing component. With the 
MenuButton context menu, autoHide works(*) (see also RT-19953). Any idea 
why? I am hoping to get this for my own ContextMenu and other popups as 


(*) works to some extent, moving the JFrame from underneath the menu 
still does not autoHide it but that is less important

On 26.10.2012 17:22, Richard Bair wrote:
> MenuButton does not play nice if the graphic is displayed TOP or
>> Usually the arrow button is located to the right of the button
>> text. Instead it is on the far right side, with too much gap in
>> between.

More information about the openjfx-dev mailing list