diff options
Diffstat (limited to 'libjava/javax/swing/JMenu.java')
-rw-r--r-- | libjava/javax/swing/JMenu.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libjava/javax/swing/JMenu.java b/libjava/javax/swing/JMenu.java index d9ad317..6fdf266 100644 --- a/libjava/javax/swing/JMenu.java +++ b/libjava/javax/swing/JMenu.java @@ -162,7 +162,8 @@ public class JMenu extends JMenuItem implements Accessible, MenuElement */ public Component add(Component component) { - return popupMenu.add(component); + popupMenu.insert(component, -1); + return component; } /** |