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

TableColumn.setMaxWidth(int maxWidth) method unspecified behavior when maxWidth < minWidth

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 6
    • client-libs

      TableColumn.setMaxWidth(int maxWidth) current spec is following:
          Sets the TableColumn's maximum width to maxWidth; also adjusts the width and preferred width if they are greater than this value.

      It doesn't specify the behavior of this method when minWidth is greater than new maxWidth value. By current specification we should set maxWidth to this new value and do not change minWidth. It leads to the contradiction when maxWidth is smaller than minWidth.
      ###@###.### 2005-1-13 12:00:46 GMT

      The same problem arises for setMinWidth(int minWidth) when minWidth > maxWidth. Specification don't clarify the behavior of method. Moreover current implementation of this method don't compare minWidth and maxWidth (in setmaxWidth such comparison occurs (see comments)). And it's possible to set minWidth > maxWidth.

      See also 6217104.
      ###@###.### 2005-1-13 12:32:19 GMT

            kwalrathsunw Kathy Walrath (Inactive)
            aglasman Alexander Glasman (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: