users
[Top] [All Lists]

Re: [cinjug-users] printing in Java

To: users@xxxxxxxxxx
Subject: Re: [cinjug-users] printing in Java
From: schafer.bt@xxxxxx
Date: Fri, 12 Nov 2004 11:22:59 -0500
Delivered-to: mailing list users@cinjug.org
Mailing-list: contact users-help@cinjug.org; run by ezmlm
Pgsenderhost: bdc-notes041.na.pg.com [155.125.116.41]

...Lets say you have a very simple Notepad style editor
written in Java, like the Notepad that comes with SDK.
How would one add functionality to allow the app to
print?  For both a networked and connected printer?...

You might start with the interface java.awt.print.Printable.  That'll get you to Pageable, PageFormat, and PrinterJob.  Standard page setup and printer selection dialogs are supported.  Looks like Java 5 will make some of this easier; for example, JTables will have their own printing support.

Bryan
<Prev in Thread] Current Thread [Next in Thread>
  • Re: [cinjug-users] printing in Java, schafer . bt <=