This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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