File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes JTable printing problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTable printing problem" Watch "JTable printing problem" New topic

JTable printing problem

Ivan Radulovic

Joined: Aug 26, 2009
Posts: 3
I have sample of JTable with data that i would like to be right aligned, also orange background color cell renderer is applied, and font is set to be Tahoma BoldItalic with font size of 13.

Problems that arise are, grid lines are over cell text, and also applied background color looks strange when PDF printer is used and document is zoomed.

Interesting thing is that when font is set to be even grid lines doesn't intersect cell text.

I am using 1.6.0_14 version of java.

You can find screenshot attached.

Do you have any suggestions or workarounds.

Thanks in advance.

[Thumbnail for screen.PNG]

Darryl Burke

Joined: May 03, 2008
Posts: 5115

Just another cross poster.

luck, db
There are no new questions, but there may be new answers.
Ivan Radulovic

Joined: Aug 26, 2009
Posts: 3
Thanks Darryl. you are right, i missed Be Forthright When Cross Posting To Other Sites

So. i apologize for this. I actually made a day delay before posting same question on sun forum, but without pointing out that i already asked question on java ranch forum.

I will keep this in mind in future.
I agree. Here's the link:
subject: JTable printing problem
jQuery in Action, 3rd edition