2

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?

asked Nov 16, 2017 at 3:52
2
  • By either playing with pref sizes or wrapping it an an anchor pane with right and left anchors set to 0. Commented Nov 16, 2017 at 5:02
  • You need to show code. Commented Dec 16, 2017 at 2:19

1 Answer 1

9

Just set the maxWidth property of the button to MAX_VALUE.

answered Nov 16, 2017 at 5:15
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.