classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] Please Review: Patch for JPopupMenu


From: Anthony Balkissoon
Subject: [cp-patches] Please Review: Patch for JPopupMenu
Date: Fri, 15 Jul 2005 15:50:20 -0400

Once a JPopupMenu has been shown once, it no longer gets sized
appropriately when components are added to or removed from it.  This
patch fixes that, and seems to agree with the JDK although I could find
no specific documentation supporting the decision to set the size to the
JPopupMenu's preferred size.


Patch attached.


2005-07-15  Anthony Balkissoon  <address@hidden>

* javax/swing/JPopupMenu.java:
(insert): Resize the container to its preferred size when an item is
inserted.
(remove): Resize the container to its preferred size when an item is
        removed.

Attachment: JPopupMenuResize.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]