title: Have different file for Menu in Java
body: <p>I have a program and since the menu is going to be really long I wanted it in a separate file called Menu.java to keep it organized.  But I'm trying to figure out how I can implement that menu in the main class (Called GUI.java which extends JFrame)</p>
  
  <p>In Menu.java there is a method 'public void buildMenu()' that creates the menu, but how can I return that menu to the main program and set it as the menu bar?</p>