Added CUT_ACTION, COPY_ACTION, and PASTE_ACTION support. These are part of a *HACK* to get cut/copy/paste support working in the same way as find, undo and redo. in JTextComponent the cut/copy/paste actions are _not_ added to the ActionMap. Instead, a default "transfer handler" system is used, apparently to get the text onto the system clipboard. Since there aren't any CUT/COPY/PASTE actions in the JTextComponent's action map, they cannot be referenced by the action framework the same way that find/undo/redo are. So, I added the actions here. The really hacky part is that by defining an Action to go along with the cut/copy/paste keys, I loose the default handling in the cut/copy/paste routines. So, I have to remove cut/copy/paste from the action map, call the appropriate method (cut, copy, or paste) and then add the action back into the map. Yuck!
Added CUT_ACTION, COPY_ACTION, and PASTE_ACTION support.
These are part of a *HACK* to get cut/copy/paste
support working in the same way as find, undo and redo. in JTextComponent
the cut/copy/paste actions are _not_ added to the ActionMap. Instead,
a default "transfer handler" system is used, apparently to get the text
onto the system clipboard.
Since there aren't any CUT/COPY/PASTE actions in the JTextComponent's action
map, they cannot be referenced by the action framework the same way that
find/undo/redo are. So, I added the actions here. The really hacky part
is that by defining an Action to go along with the cut/copy/paste keys,
I loose the default handling in the cut/copy/paste routines. So, I have
to remove cut/copy/paste from the action map, call the appropriate
method (cut, copy, or paste) and then add the action back into the
map. Yuck!

certusoft/swingx,certusoft/swingx