Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!