< prev index next >

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

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1996, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1996, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 24,35 **** */ package java.awt; import java.awt.peer.PopupMenuPeer; - import javax.accessibility.*; import sun.awt.AWTAccessor; /** * A class that implements a menu which can be dynamically popped up --- 24,36 ---- */ package java.awt; import java.awt.peer.PopupMenuPeer; + import javax.accessibility.AccessibleContext; + import javax.accessibility.AccessibleRole; import sun.awt.AWTAccessor; /** * A class that implements a menu which can be dynamically popped up
*** 46,56 **** public class PopupMenu extends Menu { private static final String base = "popup"; static int nameCounter = 0; ! transient boolean isTrayIconPopup = false; static { AWTAccessor.setPopupMenuAccessor( new AWTAccessor.PopupMenuAccessor() { public boolean isTrayIconPopup(PopupMenu popupMenu) { --- 47,57 ---- public class PopupMenu extends Menu { private static final String base = "popup"; static int nameCounter = 0; ! transient volatile boolean isTrayIconPopup; static { AWTAccessor.setPopupMenuAccessor( new AWTAccessor.PopupMenuAccessor() { public boolean isTrayIconPopup(PopupMenu popupMenu) {
< prev index next >