src/java.desktop/share/classes/java/awt/PopupMenu.java

Print this page

        

*** 119,129 **** if (parent != null && !(parent instanceof Component)) { super.addNotify(); } else { if (peer == null) ! peer = Toolkit.getDefaultToolkit().createPopupMenu(this); int nitems = getItemCount(); for (int i = 0 ; i < nitems ; i++) { MenuItem mi = getItem(i); mi.parent = this; mi.addNotify(); --- 119,129 ---- if (parent != null && !(parent instanceof Component)) { super.addNotify(); } else { if (peer == null) ! peer = getComponentFactory().createPopupMenu(this); int nitems = getItemCount(); for (int i = 0 ; i < nitems ; i++) { MenuItem mi = getItem(i); mi.parent = this; mi.addNotify();