aboutsummaryrefslogtreecommitdiff
path: root/libjava/javax/swing/JMenu.java
diff options
context:
space:
mode:
authorRoman Kennke <roman@kennke.org>2005-04-22 18:31:30 +0000
committerMichael Koch <mkoch@gcc.gnu.org>2005-04-22 18:31:30 +0000
commitc189e185d44ade63dd087a9c2ba059c19920f8a5 (patch)
treedad7c6c39a8f34edd2605fabf4f0409f420383ff /libjava/javax/swing/JMenu.java
parentf030e8540f48f439493aeb129cf24235d456c5a9 (diff)
downloadgcc-c189e185d44ade63dd087a9c2ba059c19920f8a5.zip
gcc-c189e185d44ade63dd087a9c2ba059c19920f8a5.tar.gz
gcc-c189e185d44ade63dd087a9c2ba059c19920f8a5.tar.bz2
2005-04-22 Roman Kennke <roman@kennke.org>
* javax/swing/plaf/basic/BasicLookAndFeel.java (initComponentDefaults): Changed Button.border to be BasicBorders.getButtonBorder as it should be. 2005-04-22 Roman Kennke <roman@kennke.org> * javax/swing/plaf/basic/BasicTabbedPaneUI.java: (getMaximumSize): Return (Short.MAX_VALUE, Short.MAX_VALUE) as it should according to a mauve testcase, instead of the preferred size. 2005-04-22 Roman Kennke <roman@kennke.org> * javax/swing/JMenu.java (add): add(Component) now calls PopupMenu.insert(..) instead of PopupMenu.add(..). add(..) is not implemented for Component, so JComponent.add(..) is called instead, adding the component in the wrong place. 2005-04-22 Roman Kennke <roman@kennke.org> * javax/swing/plaf/basic/BasicButtonListener.java (mousePressed): replaced query to getModifiersEx with getModifiers. This method relied on faulty behaviour in getModifierEx. (mouseReleased): replaced query to getModifiersEx with getModifiers. This method relied on faulty behaviour in getModifierEx. 2005-04-22 Roman Kennke <roman@kennke.org> * javax/swing/plaf/metal/MetalLookAndFeel.java (getDefaults): Call addCustomEntriesToTable on the theme. 2005-04-22 Roman Kennke <roman@kennke.org> * javax/swing/tree/DefaultTreeSelectionModel.java (constructor): Added implementation. (getRowMapper): Added implementation. (setSelectionMode): Added implementation. (getSelectionMode): Added implementation. (getSelectionPath): Added implementation. (getSelectionPaths): Added implementation. (getSelectionCount): Added implementation. (isSelectionEmpty): Added implementation. (getSelectionRows): Added implementation. (getMinSelectionRow): Added implementation. (getMaxSelectionRow): Added implementation. (getLeadSelectionRow): Added implementation. (getLeadSelectionPath): Added implementation. From-SVN: r98580
Diffstat (limited to 'libjava/javax/swing/JMenu.java')
-rw-r--r--libjava/javax/swing/JMenu.java3
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;
}
/**