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