File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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.
 
Don't get me started about those stupid light bulbs.
 
subject: fixed and percentage columns in gridpane