Hi, I have a table in a scroll pane and would like to print out the contents by adding a 'print' feature in the menu bar. Can anyone tell me which class in java api will help me do the printing by the default printer? Thanks Chris
Hi John, Thank you so much. Your information save me a lot of time and I only need to add two lines to make my case work. Have a nice day Chris
Shaz Ali
Greenhorn
Joined: Sep 08, 2001
Posts: 5
posted
0
Originally posted by Chris Ben: Hi John, Thank you so much. Your information save me a lot of time and I only need to add two lines to make my case work. Have a nice day Chris
Hi Chris can u pls write those lines for me... because its working fine only for JTable,but if i m printing whole JPanel its giving error printing........
Chris Ben
Ranch Hand
Joined: Jan 15, 2001
Posts: 135
posted
0
Sorry for responding so late. What I need to do is to print the table only, though it is in the scroll panel, I do not care about the part other than the contents of the table. Check report.java in that website, I almost directly copy its codes for printing with my own TableModel written before. good luck Chris
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.