The Artima Developer Community
Sponsored Link

Java Answers Forum
Can anyone explain how to send doc to printer using swing?

1 reply on 1 page. Most recent reply: Aug 22, 2002 1:56 PM by thomas

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
thomas

Posts: 42
Nickname: turbomanic
Registered: Jul, 2002

Can anyone explain how to send doc to printer using swing? Posted: Aug 21, 2002 2:34 PM
Reply to this message Reply
Advertisement
I have used java for awhile but am confused when it comes to javax.swing. I know that there exsist a java.swing.print package but don't understand how to use it . Can anyone give some idea on how to send a document to the printer to get printed. Any info would be appriciated.


thomas

Posts: 42
Nickname: turbomanic
Registered: Jul, 2002

Re: Can anyone explain how to send doc to printer using swing? Posted: Aug 22, 2002 1:56 PM
Reply to this message Reply
I found this webpage http://www.apl.jhu.edu/~hall/java/Swing-Tutorial/Swing-Tutorial-Printing.html but when I tried it with a textArea it came out to 9999 pages since the text area goes to infinity in all directions. Is there any way for me to limit the text area/divide it into pages so I can let the printer know when the text is stopped?

Flat View: This topic has 1 reply on 1 page
Topic: jar file need more help Previous Topic   Next Topic Topic: jsp problem: flush, print, println

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use