The Artima Developer Community
Sponsored Link

Legacy Design Forum
Event Generator Idiom

Advertisement

Advertisement

This page contains an archived post to the Design Forum (formerly called the Flexible Java Forum) made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

printing component java

Posted by kapil keskar on January 10, 2002 at 8:47 AM

hello,
i am having problem with printing component, swing.
I am retrieving some fields in JPanel at runtime from database. & showing it in JPanel having JScrollpane.
I GOT PROBLEM IN FOLLOWING AREAS

1) I want to print the contents on a panel without considering height & width but it should print the original width & height of component.(which is in 2 pages).

2) Also can pagebreak can be given in coding or while printing?

3) Is it possible to print through java without making graphical image of the component using graphical Object.

4) or how to pass my component object to
Graphics2d g2d=(Graphics2d)g;
g varible.
can anybody help me out





Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us