users
[Top] [All Lists]

RE: [cinjug-users] printing in Java

To: <users@xxxxxxxxxx>
Subject: RE: [cinjug-users] printing in Java
From: "James Carman" <james@xxxxxxxxxxxxxxxxxxxx>
Date: Fri, 12 Nov 2004 10:58:51 -0500
Delivered-to: mailing list users@cinjug.org
Importance: Normal
In-reply-to: <000401c4c8cf$b43a4680$9f42058f@carmani600m>
Mailing-list: contact users-help@cinjug.org; run by ezmlm
Organization: Carman Consulting, Inc.
Of course I meant API rather than AIP!  Doh!  TGIF!

-----Original Message-----
From: James Carman [mailto:james@xxxxxxxxxxxxxxxxxxxx] 
Sent: Friday, November 12, 2004 10:53 AM
To: users@xxxxxxxxxx
Subject: RE: [cinjug-users] printing in Java

There is an AIP in the AWT that allows for starting "print jobs."  Try
looking into Toolkit.getPrintJob().  That will use your local native O/S's
print job initiation dialog, which will allow you to choose whatever printer
you want.

-----Original Message-----
From: Jason Kretzer [mailto:jrkretzer@xxxxxxxxx] 
Sent: Friday, November 12, 2004 10:23 AM
To: users@xxxxxxxxxx
Subject: [cinjug-users] printing in Java

I saw this thread on another JUG and decided to post
it here as the other JUG is still debating it.

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?

It has been suggested that you use a FileOutputStream
and just point it at the (lets say for Windows) COM1
port.

Are there better ways than this?

-Jason

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------
You may unsubscribe from this mailing list
by sending a blank email addressed to:
users-unsubscribe@xxxxxxxxxx

--
Find additional help by sending a blank email
addressed to:
users-help@xxxxxxxxxx



---------
You may unsubscribe from this mailing list
by sending a blank email addressed to:
users-unsubscribe@xxxxxxxxxx

--
Find additional help by sending a blank email
addressed to:
users-help@xxxxxxxxxx




<Prev in Thread] Current Thread [Next in Thread>