diff options
author | Roman Kennke <roman@kennke.org> | 2005-11-01 20:56:26 +0000 |
---|---|---|
committer | Roman Kennke <roman@kennke.org> | 2005-11-01 20:56:26 +0000 |
commit | d9eeb458a8dc13ff7f5c2ee4e8646593accb8c80 (patch) | |
tree | 797341d4d35d1884cf043a7ed7e8d654a7081207 | |
parent | 9cdb240d2ee9c1100238dc7bb2c8664135bd5ee2 (diff) | |
download | classpath-d9eeb458a8dc13ff7f5c2ee4e8646593accb8c80.tar.gz |
2005-11-01 Roman Kennke <kennke@aicas.com>
* javax/swing/JPopupMenu.java
(setVisible): Pack the JPopupMenu before fetching the Popup
instance. Otherwise the PopupFactory has the wrong size for
its size check.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | javax/swing/JPopupMenu.java | 2 |
2 files changed, 8 insertions, 1 deletions
@@ -1,3 +1,10 @@ +2005-11-01 Roman Kennke <kennke@aicas.com> + + * javax/swing/JPopupMenu.java + (setVisible): Pack the JPopupMenu before fetching the Popup + instance. Otherwise the PopupFactory has the wrong size for + its size check. + 2005-11-01 Anthony Balkissoon <abalkiss@redhat.com> * javax/swing/JTable.java: diff --git a/javax/swing/JPopupMenu.java b/javax/swing/JPopupMenu.java index cd182fd25..1f2282e23 100644 --- a/javax/swing/JPopupMenu.java +++ b/javax/swing/JPopupMenu.java @@ -548,8 +548,8 @@ public class JPopupMenu extends JComponent implements Accessible, MenuElement firePopupMenuWillBecomeVisible(); PopupFactory pf = PopupFactory.getSharedInstance(); - popup = pf.getPopup(invoker, this, popupLocationX, popupLocationY); pack(); + popup = pf.getPopup(invoker, this, popupLocationX, popupLocationY); popup.show(); } else |