classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] Patch for Approval: BorderLayout fixes JMenu strange size r


From: Anthony Balkissoon
Subject: [cp-patches] Patch for Approval: BorderLayout fixes JMenu strange size reduction.
Date: Wed, 20 Jul 2005 11:18:48 -0400

This patch fixes the strange size reduction seen in Robert Schuster's
license chooser program and reported to bug-classpath.

This patch essentially removes the horizontal and vertical padding of
components when there is no adjacent component.  The problem involved
JRootPane being resized everytime its JLayeredPane was resized: the
JLayeredPane would be set to the full size of the JRootPane only to have
the JRootPane be reduced in size due to this padding issue.

This patch needs approval, especially since it involves an AWT layout
manager rather than my normal swing widgets.

Patch is attached.

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

* java/awt/BorderLayout.java:
(layoutContainer): Removed addition of horizontal and vertical gaps
when there is no corresponding adjacent component.

Attachment: JMenuStrangeResize.diff
Description: Text Data


reply via email to

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