I've the below code for opening and viewing a PDF document in java swing, but here i need an additional component to create a border to check if the content is going inside the margin or out of margin, the margin should be on both the sides. please let me know how i can get it.
Trying to understand what you want. You want a border around the PDF component. You want that border to be the same on both sides. You also want that border (or something) to detect if and when the text of the PDF document crosses that border, effectively turning the border into a margin for the document. Is that it?
Joined: Jul 16, 2012
I've fixed the code. Thank you very much for looking into this post. but I've encountered another problem i'll be posting it as a new question Thanks again.