JDK-4618355 : spec for GridBagConstraints.gridwidth(gridheight) is contradictory
  • Type: Bug
  • Component: docs
  • Sub-Component: guides
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris_2.5
  • CPU: sparc
  • Submitted: 2001-12-28
  • Updated: 2017-05-16
  • Resolved: 2004-09-15
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
5.0 b19Fixed
Name: idR10193			Date: 12/28/2001

Specification for gridwidth field of GridBagConstraints class states: 
"... Specifies the number of cells in a row for the component's 
display area. Use REMAINDER to specify that the component be the 
last one in its row. Use RELATIVE to specify that the component be 
the next-to-last one in its row. ...". 

First sentence says that gridwidth affects component's display area, 
but second and third sentences say about component's position. Note 
that there is another field that controls component's position - gridx.
For example what if one sets gridx to some value and gridwidth to 
REMAINDER? Will component be placed last one in its row or according 
to gridx. Similar problem with RELATIVE. All above could be applied to
the pair gridheight/gridy (with corresponding changes).


CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: generic tiger-beta FIXED IN: tiger tiger-beta INTEGRATED IN: tiger-b19 tiger-b26 tiger-beta VERIFIED IN: 1.5


EVALUATION This is correct. Bug fix reviewed by Brent, approved by CCC. Fixed for tiger. ###@###.### 2003-08-21 On the first pass I corrected GridBagLayout. On the second pass I corrected GridBagConstraints. Fixed for tiger. ###@###.### 2003-09-15