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 printing from a JTextArea 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 "printing from a JTextArea" Watch "printing from a JTextArea" New topic

printing from a JTextArea

oghenekaro EFEKODO
Ranch Hand

Joined: Oct 10, 2005
Posts: 56
I want programmers to help me out. i want the code to print from a JTextArea.
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 45338
Look through the API for JTextArea and you should be able to find how to get the text.
I agree. Here's the link:
subject: printing from a JTextArea
It's not a secret anymore!