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
|