United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4704042 : Please add a Insets.set(top, left, bottom, right);

Details
Type:
Enhancement
Submit Date:
2002-06-18
Status:
Resolved
Updated Date:
2003-08-08
Project Name:
JDK
Resolved Date:
2003-08-08
Component:
client-libs
OS:
solaris_7
Sub-Component:
java.awt
CPU:
sparc
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.4.0
Fixed Versions:
5.0 (tiger)

Related Reports

Sub Tasks

Description
Sure would be nice if Insets has a set method that allowed you set all
the fields in one pass vs having 4 setters everywhere in my app, eg:

insets.set(top, left, bottom, right);

vs
insets.top = top;
insets.left = left;
insets.right = right;
insets.bottom = bottom;

                                    

Comments
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
tiger

FIXED IN:
tiger

INTEGRATED IN:
tiger
tiger-b15


                                     
2004-06-14
EVALUATION

This would help Swing slim down some code (4 lines -> 1 line).  It would be really easy to do, so I'll look at it for Tiger.
###@###.### 2002-06-18
                                     
2002-06-18



Hardware and Software, Engineered to Work Together