TextMenu is a Java library to add commonly used actions for selected text...
- To a popup/context menu of text components.
- As separate menu items to a menu (commonly the Edit menu).
The actions added are: Cut, Copy, Paste, Delete and Select All.
Created TextMenu automatically handles text selection/deselection, non-editable components, password components etc.
The library simplifies development of GUI based applications.
Download library JAR file: TextMenu.
Usage:
- Add the JAR file as a library to existing/new project.
- Create an instance of TextMenu using the Constructor TextMenu(<JTextComponents>) or TextMenu(<JTextComponents>, <JTextComponent>, <JMenu>).
- <JTextComponents> is an array of JTextComponents to add popup menu to.
- <JTextComponent> is the JTextComponent to set the menu items for (generally a text area).
- <JMenu> is the JMenu to add the edit menu item to.
- Also, see
▲