-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.2.0, 1.2.1
-
generic, x86
-
generic, windows_95, windows_nt
Name: diC59631 Date: 11/12/98
The code in java.awt.Dimension (jdk1.2rc1) needs to be changed from:
public void setSize(double width, double height) {
width = (int) Math.ceil(width);
height = (int) Math.ceil(height);
}
to:
public void setSize(double width, double height) {
this.width = (int) Math.ceil(width);
this.height = (int) Math.ceil(height);
}
otherwise, the class data never gets changed.
(Review ID: 42571)
======================================================================
- duplicates
-
JDK-4228590 java.awt.Dimension.setSize(double width, double height) does not resize
-
- Closed
-
-
JDK-4245442 Dimension.setSize(double, double) doesn't work as stated in specs
-
- Resolved
-