Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Button - rowSpan now working

 
Robert Haynes
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?


Thanks
 
John Damien Smith
Ranch Hand
Posts: 320
19
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!