Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

creating a margin in swing

 
Rakesh Keerthi
Ranch Hand
Posts: 152
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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.



Thanks.
 
Sam Gooding
Ranch Hand
Posts: 35
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Rakesh Keerthi
Ranch Hand
Posts: 152
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sam,

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.

The code i wrote is


 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic