diff -r 1954edd3b7a7 -r 67ca55732362 jdk/src/share/classes/java/awt/PopupMenu.java --- a/jdk/src/share/classes/java/awt/PopupMenu.java Fri Jun 19 16:49:50 2009 -0400 +++ b/jdk/src/share/classes/java/awt/PopupMenu.java Tue Jun 23 13:35:58 2009 +0400 @@ -28,6 +28,7 @@ import java.awt.peer.PopupMenuPeer; import javax.accessibility.*; +import sun.awt.AWTAccessor; /** * A class that implements a menu which can be dynamically popped up @@ -48,6 +49,15 @@ transient boolean isTrayIconPopup = false; + static { + AWTAccessor.setPopupMenuAccessor( + new AWTAccessor.PopupMenuAccessor() { + public boolean isTrayIconPopup(PopupMenu popupMenu) { + return popupMenu.isTrayIconPopup; + } + }); + } + /* * JDK 1.1 serialVersionUID */