What I meant was, what use case are you trying to address? However, the ScrollPane is definitely a clue. Try setting the horizontal or vertical scroll policy to "fill". That tells the scroll pane to size the content to fit the available width or height, respectively. Alternatively, "fill_to_capacity" means "fill" when the content's preferred size is smaller than the scroll pane size, but "auto" when it is larger.
On Apr 20, 2010, at 7:46 PM, Shahzad Bhatti wrote: > I am defining StackPane as parent, which has ScrollPane, which in turn has > TablePane or BoxPane. I noticed that if I remove ScrollPane then it works but > if I leave ScrollPane it doesn't expand. Also, when I resize the window then > it does not resizes. Thanks. > > > > On 4/20/10 4:37 PM, "Greg Brown" <[email protected]> wrote: > > TablePane supports sizing children based on a percentage of the available > area: > > http://pivot.apache.org/tutorials/table-panes.html > > However, if you can describe more specifically what you are trying to do, > maybe we can suggest a better alternative. > > > On Apr 20, 2010, at 7:00 PM, Shahzad Bhatti wrote: > >> I have tried this solution by using StackPane as parent, and using other >> containers such as tabs, expanders, scrollpanes and tables as its children >> but it's not resizing them. Is there another solution to defining children >> based on percentage of parent size rather than absolute width/height. Thanks. >> >> >> On 4/15/10 11:47 AM, "Greg Brown" <[email protected]> wrote: >> >> No, but you can achieve something similar by using a parent container that >> will size a child component to fill its available area (such as StackPane). >> >> On Apr 15, 2010, at 2:43 PM, Shahzad Bhatti wrote: >> >>> I noticed that setMaximized is only available for Window and its >>> subclasses. Is it possible to use setMaximum for BoxPane, TablePane or >>> Border or a way to add these containers based on parent's size. Thanks. >>> >>> ______________________________________________ >>> >>> See http://www.peak6.com/email_disclaimer.php >>> for terms and conditions related to this email >> >> > >
