Using MenuBar , Menu and MenuItems on a JFrame
(exit programm when the File->Exit menu is clicked)