I also have a function that shows and hides the datagrids inside the top VBox by toggling their rowHeight between 0 and 14 and their visibility between true and false.
How do I get the panel container to recalculate its height depending on whether the datagrids in the top VBox are showing or hidden? And - is this the most efficient way to show/hide the datagrids?

