This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Print complete UI. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Print complete UI." Watch "Print complete UI." New topic

Print complete UI.

pawan chopra
Ranch Hand

Joined: Jan 23, 2008
Posts: 410


I am trying to print my swing UI. Results are not correct I am not able to see complete result in print. It doesn't print any thing which needs scroll. Another thing is if we see from the width of the UI it doesn't cover the complete width. I am using following code:

Can any one help me on that? Let me know if there is a better way to do this.

Pawan Chopra
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
somewhere on sun/oracle's site there's an article/tutorial on advanced printing which should give you some pointers.
jQuery in Action, 2nd edition
subject: Print complete UI.
Similar Threads
Printing TextArea which span more than 1 page
Printing - Fit to Page
Printing AWT From Applet
Print a JTextArea