i have one button in a borderpane. I want the button to be stretched out horizontally so it fills the entire width.
how can i do that?
-
By either playing with pref sizes or wrapping it an an anchor pane with right and left anchors set to 0.Mordechai– Mordechai2017年11月16日 05:02:52 +00:00Commented Nov 16, 2017 at 5:02
-
You need to show code.Luai Ghunim– Luai Ghunim2017年12月16日 02:19:36 +00:00Commented Dec 16, 2017 at 2:19
1 Answer 1
Just set the maxWidth property of the button to MAX_VALUE.
answered Nov 16, 2017 at 5:15
Jai
8,4033 gold badges27 silver badges57 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
lang-java