JDK-4704042 : Please add a Insets.set(top, left, bottom, right);
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: solaris_7
  • CPU: sparc
  • Submitted: 2002-06-18
  • Updated: 2017-05-16
  • Resolved: 2003-08-08
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.
Other
5.0 tigerFixed
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
14-06-2004

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
18-06-2002