equal
deleted
inserted
replaced
25 |
25 |
26 package java.awt; |
26 package java.awt; |
27 |
27 |
28 import java.awt.peer.PopupMenuPeer; |
28 import java.awt.peer.PopupMenuPeer; |
29 import javax.accessibility.*; |
29 import javax.accessibility.*; |
|
30 |
|
31 import javax.tools.annotation.GenerateNativeHeader; |
30 |
32 |
31 import sun.awt.AWTAccessor; |
33 import sun.awt.AWTAccessor; |
32 |
34 |
33 /** |
35 /** |
34 * A class that implements a menu which can be dynamically popped up |
36 * A class that implements a menu which can be dynamically popped up |
40 * (e.g., you add it to a <code>MenuBar</code>), then you <b>cannot</b> |
42 * (e.g., you add it to a <code>MenuBar</code>), then you <b>cannot</b> |
41 * call <code>show</code> on that <code>PopupMenu</code>. |
43 * call <code>show</code> on that <code>PopupMenu</code>. |
42 * |
44 * |
43 * @author Amy Fowler |
45 * @author Amy Fowler |
44 */ |
46 */ |
|
47 /* No native methods here, but the constants are needed in the supporting JNI code */ |
|
48 @GenerateNativeHeader |
45 public class PopupMenu extends Menu { |
49 public class PopupMenu extends Menu { |
46 |
50 |
47 private static final String base = "popup"; |
51 private static final String base = "popup"; |
48 static int nameCounter = 0; |
52 static int nameCounter = 0; |
49 |
53 |