-
Bug
-
Resolution: Fixed
-
P2
-
1.1
-
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
}
}