Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4127271

REGRESSION: Frame w/MenuBar leaves paint residue when disposed

XMLWordPrintable

    • 1.1.6
    • x86
    • windows_nt
    • Verified



        Name: moC74494 Date: 04/09/98


        Found in informal 1.1.6L binary build (4/8/98) by
        Borland (quick testing).

        Steps:
          Show a Frame with a MenuBar.
          Dispose the Frame.
          // leaves a non-painted region on the screen along
          // the bottom edge of the Frame, the height of the
          // MenuBar.

        Code:
          The following simple code

        import java.awt.*;
        import java.awt.event.*;
        public class UglyFrame extends Frame {
          public static void main(String[] args) {
            final UglyFrame f = new UglyFrame();
            MenuBar mb = new MenuBar();
            Menu m = new Menu("menu");
            mb.add(m);
            f.setMenuBar(mb);
            f.addWindowListener(
              new WindowAdapter() {
                public void windowClosing(WindowEvent e) {
                  f.dispose();
                }
              }
            );
            f.show();
          }
        }
        (Review ID: 28091)
        ======================================================================

              dmendenhsunw David Mendenhall (Inactive)
              moanceasunw Mircea Oancea (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: