-
Enhancement
-
Resolution: Fixed
-
P4
-
1.2.0
-
beta
-
generic, x86
-
generic, windows_95
Name: rm29839 Date: 12/19/97
In Class java.awt.print.Paper, we have a single
constructor, described as follows:
Paper()
Creates a letter sized piece of paper with one inch margins.
It seems to me that it would be better if we made
the Paper constructor more culturally neutral, for
all of our non-U.S. friends out there.
I'd like to suggest that this constructor be
changed to (not supplemented by, but changed to):
Paper(int size)
where the various built-in
constants would include the following:
Paper.USLETTER, Paper.USLEGAL, Paper.A4, Paper.A5,
and so on. That way, I would call
Paper myPaper = new Paper(Paper.USLETTER);
and someone in Japan could use the same code,
with "Paper.A4" in place of "Paper.USLETTER".
I think this approach is more appropriate in
an international language like Java.
Of course, you'll still have to decide what
margins to use, but since no two people use
the same sized margins, they probably won't
object to having to set them after calling
the constructor. As long as the constructor
simply respects national paper size standards,
which don't usually vary from person to
person within the same locale, it should be okay.
__Glen Perkins__
###@###.###
(Review ID: 22200)
======================================================================