File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Print Text Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Print Text" Watch "Print Text" New topic

Print Text

Marcus Senna

Joined: Feb 22, 2007
Posts: 21
I am trying to print the text in a JTextArea, which is in a JScrollPane. Right now i am only able to print what is viewable in the JScrollPane. I would like to print all of the text in the JTextArea. Below is the code i have been using. Thanks!!
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

Is this possible to print the value inside JTextArea without using setText() or writeTextArea method??

[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
Marcus Senna

Joined: Feb 22, 2007
Posts: 21
The writeTextArea method is called by an object of my system, to display the status of that object on the JTextArea.
I agree. Here's the link:
subject: Print Text
It's not a secret anymore!