wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Print Text" Watch "Print Text" New topic
Author

Print Text

Marcus Senna
Greenhorn

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??


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

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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Print Text
 
Similar Threads
ScrollBar Problem
Java print!
How to copy from 4 JTextFields to 1 JTextArea
JTextPane printing issue
How to print something that is not set initially