JMenu pressed throws exception?

Use private AbstractAction redoAction = new AbstractAction("Redo"){...} and private AbstractAction redoAction = new AbstractAction("Undo"){...} Also instead of letting it explode with an exception, you can do if(undo.canUndo()) { undo.undo(); } and if(undo.canRedo()) { undo.redo(); }.

Passing a String argument to AbstractAction constructor resolved the problem. Thanks Bala R.

This should have been entered as a comment to Bala R's answer. If that answer solved the problem, please mark it as 'correct' to help people searching later. – Andrew Thompson Jul 26 at 3:09.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions