Exception in thread "main" java.lang.NullPointerException
at sun.awt.X11.XMenuPeer.repaintMenuItem(XMenuPeer.java:363)
at sun.awt.X11.XMenuItemPeer.setEnabled(XMenuItemPeer.java:71)
at sun.awt.X11.XMenuItemPeer.disable(XMenuItemPeer.java:93)
at java.awt.MenuItem.disable(MenuItem.java:280)
at java.awt.MenuItem.enable(MenuItem.java:267)
at java.awt.MenuItem.setEnabled(MenuItem.java:242)
at JMStudio.updateMenu(JMStudio.java:1274)
at JMStudio.<init>(JMStudio.java:119)
at JMStudio.createNewFrame(JMStudio.java:1412)
at JMStudio.main(JMStudio.java:1401)