-
Enhancement
-
Resolution: Won't Fix
-
P4
-
None
-
1.1
-
generic
-
solaris_10
From ###@###.### Tue Mar 25 11:33:19 1997
MIME-Version: 1.0
To: Amy Fowler <aim@Eng>
Subject: GridBagLayout.lookupConstraints
X-Priority: 3 (Normal)
Content-Transfer-Encoding: 7bit
X-Status: $$$$
X-UID: 0000000156
Hi, Amy,
GirdBagLayout.lookupConstraints is protected. Grrr... :-)
It should be public. There are situations in painting where one
needs to get the constraints for the placement of a component,
and it is a performance hit to use getConstraints which makes a
copy. This is a big hit with a complex layout containing many
components.
Making it protected has little real value, since it doesn't
really protect the internal constraint; if one wants to get
at it, all that is necessary is to make a subclass.
So making the method protected is something of a false sense of
security, and only makes useful things more difficult.
--
Gary Aitken ###@###.### http://www.weblogic.com/ (business)
###@###.### (personal)
MIME-Version: 1.0
To: Amy Fowler <aim@Eng>
Subject: GridBagLayout.lookupConstraints
X-Priority: 3 (Normal)
Content-Transfer-Encoding: 7bit
X-Status: $$$$
X-UID: 0000000156
Hi, Amy,
GirdBagLayout.lookupConstraints is protected. Grrr... :-)
It should be public. There are situations in painting where one
needs to get the constraints for the placement of a component,
and it is a performance hit to use getConstraints which makes a
copy. This is a big hit with a complex layout containing many
components.
Making it protected has little real value, since it doesn't
really protect the internal constraint; if one wants to get
at it, all that is necessary is to make a subclass.
So making the method protected is something of a false sense of
security, and only makes useful things more difficult.
--
Gary Aitken ###@###.### http://www.weblogic.com/ (business)
###@###.### (personal)