Just remove all J :-P
JMenuItem = MenuItem
JMenuBar = MenuBar
setJMenuBar = setMenuBar
This can be done because swing has JMenuItem and awt has MenuItem e.t.c.
The line I had to change more was:
(this, 1 , 1 ,
KeyEvent.CTRL_MASK , KeyEvent.VK_X ,
which became like this :
KeyStroke.getKeyStroke (KeyEvent.VK_X, KeyEvent.CTRL_MASK)
or it could be:
That's all for now. That worked for me.
If you have any other similar problem please leave it as comment to help others too.
Thank you for visiting.