Context menu

Setting the contextMenuEnabled property to true will enable a context menu with some basic functions in WebView:

 

It provides some basic operations, such as opening links, reloading, and working with a clipboard. But there is no API to control it in any way, so the usefulness of this menu is limited.

Note that the Open Link in New Window functionality requires setting a pop-up handler as described in the Loading content and user interface callbacks section.

Get Mastering JavaFX 10 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.