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

GridBagConstraints.ipad(x|y) defined in a new way

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 5.0
    • 5.0
    • client-libs
    • b45
    • generic
    • generic



      Name: adR10249 Date: 02/26/2004

      Too many users were displeasured with new GridBagLayout's
      behaviour. From the very beginning (1995) GridBagLayout work in
      inconsistency with spec. So many users had their applications relying on existing behaviour, and when
      it was brought in consistence with spec, their applications seemed broken.

      Javadoc for GridBagConstraints says:
      --
      public int ipadx

          This field specifies the internal padding of the component, how much space to add to the
          minimum width of the component. The width of the component is at least its minimum width
          plus (ipadx * 2) pixels.

      But GridBagLayout used only single ipadx (or ipady) till Tiger's
      recent build (The fix changed the behaviour is #4617682). After the Beta users were harmed
      with it because they are accustomed by this incorrect behaviour. Moreover, there are many
      applications which rely on old behaviour.

      Simple example is available in 4991218.

      ======================================================================

            dav Andrei Dmitriev (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: