diff options
Diffstat (limited to 'javax/swing/JPopupMenu.java')
-rw-r--r-- | javax/swing/JPopupMenu.java | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/javax/swing/JPopupMenu.java b/javax/swing/JPopupMenu.java index 00998b81a..f1ec51156 100644 --- a/javax/swing/JPopupMenu.java +++ b/javax/swing/JPopupMenu.java @@ -261,9 +261,6 @@ public class JPopupMenu extends JComponent implements Accessible, MenuElement constraints.weightx = 100.0; constraints.weighty = 100.0; - if (index == -1) - index = getComponents().length; - constraints.gridy = index; super.add(component, constraints, index); |