Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Printing text in JText Area

I want to print text in JTextArea component. Please help me with example.
[74 byte] By [Arun Kumar] at [2007-11-11 8:13:27]
# 1 Re: Printing text in JText Area
What do you mean?
public void print(JTextArea area, String s) {
area.setText(area.getText() + s);
}
destin at 2007-11-11 22:36:02 >
# 2 Re: Printing text in JText Area
I think he means to print whatever is in the JTextArea to the printer. Check out his article:

http://www.javaworld.com/javaworld/jw-06-1999/jw-06-step.html?

Kind regards,
Noel
noelob at 2007-11-11 22:37:07 >