JavaFX 2 Not Resizing UI Control Based On Window Size


I'm new to JavaFX and I want to learn. I have a Group containing a GridPane that contains a lineChart, TableView and HBox (status bar) but I'm experiencing the following problem:

  1. I am using screen resolution 800 x 600 on Windows XP when I change the screen resolution to 1024 x 768, the lineChart, TableView and HBox does not expand to fill the new window size, it leaves a large space at the right. How can I make controls fill the width of the window when window is resized.

  2. The TableView's height extends beyond the boundary of the window, the bottom border of the tableView and the status bar is not showing. How can I make sure that the tableView does not extend beyond the window height?

3/16/2012 11:25:28 AM

you should use userComputed size (height,and width) property.

7/26/2014 10:00:44 AM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow