aspose file tools*
The moose likes JavaFX and the fly likes fixed and percentage columns in gridpane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JavaFX
Bookmark "fixed and percentage columns in gridpane" Watch "fixed and percentage columns in gridpane" New topic
Author

fixed and percentage columns in gridpane

Carl Bernardi
Greenhorn

Joined: Jan 15, 2013
Posts: 23
Hi,

I want a gridpane layout as in the attached image. Anyone know how to this or am I using the wrong layout?





[Thumbnail for layout.jpg]

Carl Bernardi
Greenhorn

Joined: Jan 15, 2013
Posts: 23
I figured out the solution to my problem. Use setHgrow(Priority.ALWAYS) on the first column and setVgrow(Priority.ALWAYS) on the first row.
Carl Bernardi
Greenhorn

Joined: Jan 15, 2013
Posts: 23
Carl Bernardi wrote:I figured out the solution to my problem. Use setHgrow(Priority.ALWAYS) on the first column and setVgrow(Priority.ALWAYS) on the first row.


Turns out that GridPane sort of solves the problem. It does handle resizing very well. The perfect way to do this is use anchor pane.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: fixed and percentage columns in gridpane