summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Kennke <roman@kennke.org>2005-11-01 20:56:26 +0000
committerRoman Kennke <roman@kennke.org>2005-11-01 20:56:26 +0000
commitd9eeb458a8dc13ff7f5c2ee4e8646593accb8c80 (patch)
tree797341d4d35d1884cf043a7ed7e8d654a7081207
parent9cdb240d2ee9c1100238dc7bb2c8664135bd5ee2 (diff)
downloadclasspath-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--ChangeLog7
-rw-r--r--javax/swing/JPopupMenu.java2
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 5efaf1a4e..fdf7461bb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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