• Post Reply Bookmark Topic Watch Topic
  • New Topic

Text surrounded by a rectangle

 
Ryan Filz
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to use Java's Graphics.drawText and drawRectangle methods to draw a piece of text inside a rectangle. I was wondering if there was an easy way to do this with a surround method or something similar.
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Ryan Filz
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your quick reply, your code helped out a lot!!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!