Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Printing

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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.
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic