title: JMenuBar not showing
body: <p>I am trying to get my JMenuBar to display in the GUI, however it just appears as a 1-pixel line at the top.</p>
  
  <p>This is my code...</p>
  
  <pre><code>public LibraryView() {
      setBounds(100,100,640,480);
      setVisible(true);
      setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      setLayout(new BorderLayout());
  
      JMenuBar b1 = new JMenuBar();
      JMenu m1 = new JMenu("Test");
      JMenuItem i1 = new JMenuItem("Item1");
  
      this.setJMenuBar(b1);
  }
  </code></pre>
  
  <p>Could someone please help me to understand what is wrong.</p>