classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] FYI: BorderLayout fixlet


From: Roman Kennke
Subject: [cp-patches] FYI: BorderLayout fixlet
Date: Thu, 04 Aug 2005 20:02:09 +0200

Hi,

this replaces a call to Component.getSize() with Component.getWidth()
and Component.getHeight(). This avoids a heap allocation and fixes a bug
in an application that I have here. (This app uses a Component that
overrides getSize() with a slightly modified semantics.)

2005-08-04  Roman Kennke  <address@hidden>

        * java/awt/BorderLayout.java
        (layoutContainer): Replaced getSize() call with getWidth() and
        getHeight(). This avoids heap allocation and fixes a bug in
        an application here.


/Roman

Attachment: BorderLayout.diff
Description: Text Data


reply via email to

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