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

Menu.add() causes Application Error on Win32

XMLWordPrintable

    • 1.1fcs
    • x86
    • windows_95
    • Not verified


      masayoshi.okutsu@Eng 1997-01-14
      Calling Menu.add() after show() causes Application Error on Win32. To
      reproduce the problem, execute the following.

      import java.awt.*;
      import java.lang.*;

      public class Test extends Frame{

        public MenuBar menubar;
        public Menu menuA;
        public Menu menuB;

        public Test(){
          menubar = new MenuBar();
          menuA = new Menu("AAA");
          menuB = new Menu("BBB");
          this.setMenuBar(menubar);
          menubar.add(menuA);
          menubar.add(menuB); // A
        }

        public static void main(String argv[]){
          Test f = new Test();
          f.show();
          f.resize(100,100);
          f.menuB.add(new MenuItem("ZZZ")); // B
        }
      }

            tballsunw Tom Ball (Inactive)
            okutsu Masayoshi Okutsu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: