Lillian Angel wrote:

2005-09-29  David Gilbert  <[EMAIL PROTECTED]>

   * javax/swing/JPopupMenu.java
   (setVisible): use current size, not preferred size, when checking for
   screen edge,

Actually, you should use the preferredSize. This gets the preferredSize
of each menuitem- which returns the size with the correct spacing for
the accelerators, icons etc. By doing this, the menu's will be painted
at the correct size.

I fixed this and I will commit it soon.
We'll need to find some other way to make this work for JComboBoxes then - the drop down list width must match the width of the JComboBox, irrespective of the preferred size.

Regards,

Dave


_______________________________________________
Classpath-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches

Reply via email to