How to print a JTextArea?
- From: "layne79" <layne79@xxxxxxxxx>
- Date: 20 Mar 2007 09:51:45 -0700
Hello,
I'm trying to implement a printing mechanism for JTextArea but I have
a problem on extracting lines from it.
I used the xample found at http://java.sun.com/docs/books/tutorial/2d/printing/set.html
(PaginationExample class) but, instead of having available an array of
String (textlines), I have a JTextArea.
I need to replace the instruction
g.drawString(textLines[line], 0, y);
at line 93
with another, taking lines from the textarea.
Dou you know how I can do that?
.
- Follow-Ups:
- Re: How to print a JTextArea?
- From: Dan Andrews
- Re: How to print a JTextArea?
- Prev by Date: JFrame from JPanel
- Next by Date: HTML table used in JTextPane not working with cellspacing="0" attribute
- Previous by thread: JFrame from JPanel
- Next by thread: Re: How to print a JTextArea?
- Index(es):
Relevant Pages
|
|