Copy and Cut in the edit menu are active only if some text is selected.

Copy and Cut in the edit menu are active only if some text is selected
Formatted the code a little bit.
removed redundant creation of JMenuBar object in the method
Editor.buildMenuBar().