Bug ID: JDK-4099794 Menubar in JFrame with FlowLayout not wrapping correctly

When a menubar is added to a JFrame with a flowlayout, and the window is resized smaller than the horizontal length of the menubar, the menubar looks as though it has been partially wrapped below, although not completely.  The result is that the bottom line of the menubar is corrupted.

The following was sent into swing-feedback from a customer:

I'm using JDK1.1.5 and Swing-0.6 (Win NT). I encountered a problem 
during the implementation of the menubar. I set the layout for the 
menubar to "FlowLayout", expecting a wrap-arround effect wenn the 
menubar is too short to contain the menu in a single line. This is 
actually what happens, the second line however, is not shown.

The following code shows the described behaviour of the menubar.


*********************************************************************

import java.awt.*;
import java.awt.event.*;
import com.sun.java.swing.*;


public class MenubarProblem {
    public static void main(String[] args) {

      JFrame frame = new JFrame("Menubar problem");
      frame.getContentPane().setLayout(new BorderLayout());

      WindowListener l = new WindowAdapter() {
         public void windowClosing(WindowEvent e) {
            System.exit(0);
         }
      };
      frame.addWindowListener(l);

      JMenuBar menuBar = new JMenuBar();
      menuBar.setLayout(new FlowLayout(FlowLayout.LEFT));

      JMenu fileMenu = new JMenu("File");
        fileMenu.add(new JMenuItem("New"));
        fileMenu.add(new JMenuItem("Open ..."));
        fileMenu.add(new JMenuItem("Save"));
        fileMenu.addSeparator();
        fileMenu.add(new JMenuItem("Exit"));
        menuBar.add(fileMenu);

      JMenu editMenu = new JMenu("Edit");
        editMenu.add(new JMenuItem("Undo"));
        editMenu.addSeparator();
        editMenu.add(new JMenuItem("Cut"));
        editMenu.add(new JMenuItem("Copy"));
        menuBar.add(editMenu);

      JMenu searchMenu = new JMenu("Search");
        searchMenu.add(new JMenuItem("Find..."));
        searchMenu.add(new JMenuItem("Find next"));
        searchMenu.add(new JMenuItem("Replace"));
        menuBar.add(searchMenu);

      JMenu helpMenu = new JMenu("Help");
        helpMenu.add(new JMenuItem("Help topics"));
        helpMenu.add(new JMenuItem("About"));
        menuBar.add(helpMenu);

      frame.getContentPane().add("North", menuBar);

      frame.setBackground(Color.lightGray);
      frame.setSize(500, 200);
      frame.show();
    } /* main() */
} /* MenubarProblem */