I am currently working on a small text editor, I had made a method to add certain actions on right mouse click.
here is how the actions are set up
and then later i thought that if i use the UIManager.setLookAndFeel , I would automatically get the actions such as ctrl+c, and ctrl +v and so on , which works great except i don't
know how i can have these actions added to the kontextMenu();I imagine there is a way to do it, but i haven't the slightest idea at the moment.
Campbell Ritchie wrote:Good grief! What sort of constructor have you got for MeineAktionen?
From the looks of it:
I'm not 100% sure about the last one; my guess it's the action command for actions fired from the Action implementation, something MeineAktionen clearly is. It probably extends AbstractAction, and I can even guess the implementation of that constructor: