The moose likes JavaFX and the fly likes putting circle in a rectangle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JavaFX
Bookmark "putting circle in a rectangle" Watch "putting circle in a rectangle" New topic

putting circle in a rectangle

bryan lim
Ranch Hand

Joined: Dec 26, 2008
Posts: 140
hi all,

maybe it's too simple. but i need help.
how do i put a circle inside a rectangle when a rectangle don't have a var content?
i need to have the circle be contained/placed inside a rectangle visually and when i drag the rectangle, circle follow.

Jim Clarke
Ranch Hand

Joined: Jun 15, 2009
Posts: 49
I am not sure exactly what you are trying to do, but perhaps Stack will help you.
By default, the nodes are centered.

Consider Paul's rocket mass heater.
subject: putting circle in a rectangle