This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
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 Elasticsearch in Action this week in the Big Data 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.
It is sorta covered in the JavaRanch Style Guide.
subject: Print Text