This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes printing jframe content in core java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "printing jframe content in core java" Watch "printing jframe content in core java" New topic
Author

printing jframe content in core java

pravin rasal
Ranch Hand

Joined: Jul 27, 2011
Posts: 63
I want to print Jframe like our word document.

I have one jframe on jframe i have Jpanel ond on that panel i have j label . In jlabel i written a letter i want to print
that letter so how can I print that letter.
thank you
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14117
    
  16

Welcome to the Ranch.

Please note that you posted this in the Meaningless Drivel forum. That's our forum that's just for entertainment, and not for serious questions. I'm a moderator here so I'll move your question to a more appropriate forum.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Daniel Doboseru
Ranch Hand

Joined: Sep 26, 2011
Posts: 57
Hi. If you mean real printing, why don't you export it as a PDF, and print it from there afterwards. Java has quite a cool API for writing PDF's, but haven't heard about a printing one, though it might be, so right now, this seems the best option, maybe someone will come up with something better.
 
Consider Paul's rocket mass heater.
 
subject: printing jframe content in core java