United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4618355 spec for GridBagConstraints.gridwidth(gridheight) is contradictory
JDK-4618355 : spec for GridBagConstraints.gridwidth(gridheight) is contradictory

Details
Type:
Bug
Submit Date:
2001-12-28
Status:
Closed
Updated Date:
2004-09-15
Project Name:
JDK
Resolved Date:
2004-09-15
Component:
docs
OS:
solaris_2.5
Sub-Component:
guides
CPU:
sparc
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.4.0
Fixed Versions:
5.0 (b19)

Related Reports

Sub Tasks

Description
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).

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

                                    

Comments
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
                                     
2003-08-21
PUBLIC COMMENTS

.
                                     
2004-09-17
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


                                     
2004-09-17



Hardware and Software, Engineered to Work Together