File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JavaFX and the fly likes Button - rowSpan now working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JavaFX
Bookmark "Button - rowSpan now working" Watch "Button - rowSpan now working" New topic

Button - rowSpan now working

Robert Haynes

Joined: Mar 09, 2012
Posts: 12
In a grid pane, I am attempting display a basic button that spans multiple rows, however all methods of declaring this setting fail to display properly. To eliminate the possibility of some nested code causing an issue, I defined a new node object and added it to the grid pane.

Two seperate methods tried:

Is there something simple that I am overlooking?

John Damien Smith
Ranch Hand

Joined: Jan 26, 2012
Posts: 227
There's not really enough information provided in the question to properly advise on it, but pehaps you are not unclamping the max size of the button so that it can fill the available space.

To understand what the above code does, see the JavaFX layout tips documentation.
Robert Haynes

Joined: Mar 09, 2012
Posts: 12
Thanks. As many times as I had looked over that page previously, it was never interpreted as "unlocking" and works like a charm. Most likely, I skimmed a bit over the page.
I agree. Here's the link:
subject: Button - rowSpan now working
It's not a secret anymore!