Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Wrong layout of custom controls in GridPane

user8929955Oct 27 2013

Having created some custom control, I wanted to put them in a grid pane (left aligned), however they are all centered.

http://sahits.ch/blog/wp-content/uploads/2013/10/WrongLayoutInGridCell.png

My investigation shows that this comes from the Group element within the Skin. The group is the top most control within the skin. During laying the controls out they get layoutX/layoutX set.

While it would be possible the circumvent this, I'm more interested in the proper way. How do I have to set up the controls, so the react as expected to layout constraints like left or top?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 24 2013
Added on Oct 27 2013
0 comments
194 views