This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JavaFX
Bookmark "putting circle in a rectangle" Watch "putting circle in a rectangle" New topic
Author

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.
thanks!

Jim Clarke
author
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.

 
Don't get me started about those stupid light bulbs.
 
subject: putting circle in a rectangle
 
Similar Threads
Shapes with slider
Comparing variables - Interfaces
Draw a Shape by selecting(combox) its color and clicking a button
Casting in generics. . .
Polymorphism example