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

replacing menubar causes frame to migrate upwards

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1 P1
    • 1.1.5
    • 1.1, 1.1.1
    • client-libs
    • None
    • 1.1.5
    • generic, sparc
    • solaris_2.5, solaris_2.5.1
    • Verified


        This is with the up-to-the-minute JDK 1.1-AWT tree of 1/27/97.

        If you remove and reinsert the MenuBar for a frame, the frame moves upwards.
        I first saw this with the BeanBix and it was pretty confused until I
        realized exactly what was happening. It only happens on Solaris.

        I'm labelling this P1/S3, as it probably ought to get fixed for FCS!!!

        Here is a simple test case that reproduces the problem. Start the following
        program and then just click on the frame to see the effect.

        KGH 1/27/97


        import java.awt.*;
         
        public class Garcon extends Frame {
         
            Garcon() {
                resize(200,200);
                setMenuBar();
                show();
            }
         
            void setMenuBar() {
                MenuBar bar = new MenuBar();
                bar.add(new Menu("foo"));
                setMenuBar(bar);
            }
         
            public boolean handleEvent(Event evt) {
                if (evt.id == Event.MOUSE_UP) {
                    setMenuBar();
                }
                return false;
            }
         
            public static void main(String argv[]) {
                new Garcon();
            }
        }
         

        nasser.nouri@Corp 1997-05-02

              pyoung Paul Young (Inactive)
              ghamiltosunw Graham Hamilton (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: