The moose likes Swing / AWT / SWT / JFace and the fly likes Print complete UI. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT / JFace
Reply Bookmark "Print complete UI." Watch "Print complete UI." New topic
Author

Print complete UI.

pawan chopra
Ranch Hand

Joined: Jan 23, 2008
Posts: 326

Hi,

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
SCJP - DuMmIeS mInD
Michael Dunn
Rancher

Joined: Jun 09, 2003
Posts: 4041
somewhere on sun/oracle's site there's an article/tutorial on advanced printing which should give you some pointers.
 
 
subject: Print complete UI.
 
Threads others viewed
Printing
Print a JTextArea
Printing - Fit to Page
Printing TextArea which span more than 1 page
Printing AWT From Applet
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture