🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #17356

Remembering PrintJob properties

#17356
From: Ross M. Dukeshier
Date: Fri, 13 Nov 1998 00:00
23 lines
1564 bytes
I'm trying to set up a program that will store a user's default printer
properties including which printer to print to (printers are networked).

I get the impression from the JDK documentation and the Java in a
Nutshell books that the Properties object you pass to the getPrintJob
method (of the Toolkit class) is supposed to be "persistent".  Unless
I'm missing something, Java passes parameters by value so I won't get
the Properties object back and I haven't found a method that will get me
the properties from the PrintJob object.  The only persistency I see is
while the program is running and after the user has selected the printer
information once during that session.  

The questions:

Is there any way to find out the properties selected for a PrintJob
object?  Do PrintJob's have a standard set of properties?

If not, is there any way other than serializing the PrintJob object to
maintain that information beyond the current program execution?

Appreciate any and all assistance...

Ross Dukeshier
Technical Details
Message-ID: <364D0510.5229@flash.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,41afd4a2b38a2664,start
X-Google-Attributes: gidf74b3,public
From: "Ross M. Dukeshier" <dukeman@flash.net>
Subject: Remembering PrintJob properties
Date: 1998/11/13
Message-ID: <364D0510.5229@flash.net>
X-Deja-AN: 411693965
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Reply-To: dukeman@pop.flash.net
Newsgroups: borland.public.jbuilder.java.language