This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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
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........
Joined: Jan 15, 2001
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