This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread 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 Android Security Essentials Live Lessons this week in the Android 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.
 
jQuery in Action, 2nd edition
 
subject: fixed and percentage columns in gridpane
 
Similar Threads
How to populate TableView data on the other screen TextField
How to embed JavaFX 2.0 application with jsp (to deploy it on server)
Removing a Node from GridPane
Scroll bar does not retain its position after or before pack
JavaFX 2.0 - Input Window (display driver crash)