This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Rectangle2D positioning  RSS feed

 
graham king
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I've been battling with the Rectangle2D object and its positioning within a JPanel and just can't seem to get it right.

Given the x,y of a Rectangle2D object and knowing its height and width,
would it be posible to determine the next x,y cordinate allowing for a side by side object placement?

Any suggestions would be great.

Thanks,

Graham
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!