Johdfn
Johdfn

Reputation: 23

javafx make button fill width

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?

Upvotes: 2

Views: 5795

Answers (1)

Jai
Jai

Reputation: 8363

Just set the maxWidth property of the button to MAX_VALUE.

Upvotes: 9

Related Questions