set Text Edit Context Menu Presence
fun JTextComponent.setTextEditContextMenuPresence(hasEditContextMenu: Boolean?)
Content copied to clipboard
Specifies whether this text component should have the edit context menu (with Cut / Copy / Paste / ... menu items).
Parameters
has Edit Context Menu
If true, the text component will have the edit context menu (with Cut / Copy / Paste / ... menu items). Pass null to reset to the default behavior.