HTML tooltip in native Mac menu?

Jörn Huxhorn jhuxhorn at googlemail.com
Mon Apr 21 14:28:29 UTC 2014


Hi Petr,

Thanks for the fast answer!

I don’t think Swing tooltips support rich text. At least I couldn’t find any documentation about it and the code in e.g. MetalToolTipUI doesn’t appear to do.

I suppose there is no way to get it working in both cases (beside disabling of the native menu bar), right?
Will JavaFX provide a better experience in that regard?

Cheers,
Jörn.


On 21. April 2014 at 15:35:21, Petr Pchelko (petr.pchelko at oracle.com) wrote:
> Hello, Jörn.
>  
> Looks like this feature can not be implemented in screen menu bar.
> Screen menu bar is implemented on top of the Cocoa menu API,
> but it does seem to support rich text in menu tooltips.
>  
> With best regards. Petr.
>  
> On 21.04.2014, at 16:59, Jörn Huxhorn wrote:
>  
> > I just realized that a JMenuItem tooltip containing HTML shows as simple text (i.e.  
> showing etc.) in the native Mac menu bar while working as expected in case of a normal  
> Swing menu. Any known workaround for this?
> >
> > Cheers,
> > Jörn.
> >
>  
>  



More information about the macosx-port-dev mailing list