This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Printing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Printing" Watch "Printing" New topic
Author

Printing

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hai,
Using Swing I am doing a program. I have a Text Area where in the Content is Displayed and i want to Print the content of the TextArea once i click the print Button. Can any one help me in Code?
thanx
sri
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Do you want to print it to the console (of course not), then to print it to a real printer you have to go through the operating system, so it would depend on your environment.


"JavaRanch, where the deer and the Certified play" - David O'Meara
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
"y sridhar",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please choose a new name which meets the requirements.
Thanks.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
This is really a question about the Java Printing API rather than Swing/AWT, so I've moved it to the Other Java APIs forum.
 
jQuery in Action, 2nd edition
 
subject: Printing
 
Similar Threads
Reading word document
Print a dialog box
Displaytag in jsp
Problem in the print option of JavaHelp
IFRAME - print