Thanks for the clarification Chris. Someone else passed that on to me
off-line, but that good for the mail-list..
Cheers, Eric
Chris Campbell wrote:
Hi Eric,
Please note that the constants defined in the
javax.print.attribute.standard classes are typesafe enums, not ints.
Read the javadoc closel
Hi Eric,
Please note that the constants defined in the
javax.print.attribute.standard classes are typesafe enums, not ints.
Read the javadoc closely for these classes. For example,
OrientationRequested.PORTRAIT is an instance of OrientationRequested.
There's no need to construct an OrientationReq
When I tried new PrintQuality(PrintQuality.HIGH); that didn't work either.
I was told that the correct way to set attributes is
attributeSet(PrintQuality.HIGH); so best I can tell, attributes aren't
what I figured.
I'm off to explore
http://java.sun.com/j2se/1.4.1/docs/guide/jps/spec/JPSTOC.fm.htm
This is a basic access modifier issue. PrintQuality's [int] constructor is
PROTECTED, so only a subclass of PrintQuality, OR another class within the
javax.print.attribute.standard package may access that protected
constructor.
The [int] constructor for OrientationRequested is also protected, and
Why does the compiler find a problem with this? I can't seem to use the defined
constants cut and pasted from the API web pages, or even a literal integer.
I do this sort of thing all the time with constants? I cannot see any problem
with the constuctors. Any help would be appreciated.
Cheers,
While reading Lawrence Rodriques' book `Building Imaging Applications
with Java Technology,' on page 261 he says "If you need better
resolution, you can perform the scale operation on the Graphics context."
I'm not sure what he means by better resolution in this context, but
it's got me thinking ab