March 2015
Beginner
1200 pages
33h 33m
English
TextField provides a default context menu, as shown in Figure 12-39, that can be displayed by clicking the right mouse button. Menu items are enabled or disabled based on the context. You can replace the default context menu with a custom context menu. Currently, there is no way to customize the default context menu.

Figure 12-39. The default context menu for TextField
The following snippet of code sets a custom context menu for a TextField. It displays a menu item stating that the context menu is disabled. Selecting the menu item does nothing. You will need to add an ActionEvent handler to the menu items in context menu to perform some action. ...
Read now
Unlock full access