Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4045003

GridBagLayout.lookupConstraints() should be public (it's protected)

XMLWordPrintable

    • 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)

            rraysunw Richard Ray (Inactive)
            amfowler Anne Fowler (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: