Make TableView height match content
Eric Le Ponner
eric.le.ponner at oracle.com
Wed Jan 7 10:55:49 UTC 2015
On 07 Jan 2015, at 11:49, Werner Lehmann <lehmann at media-interactive.de> wrote:
> Hi Dan,
> typically it is not a good idea to do this. TableView has a reason to manage scrolling on its own: if the tableview has 100000 items you don't want to have all these nodes in the scenegraph when it is sufficent to show the visible ones.
> Your approach may have some value if the number of items is quite low. In that case I'd suggest to skip tableview and put your items in that same vbox. Of course you'd have to handle columns yourself then.
GridPane would make column handling will be a bit easier.
> On 06.01.2015 21:26, Dan Smith wrote:
>> Putting this another way: TableViews automatically wrap their content
>> in a (implicit?) scroll pane. I'd like to turn that off. Is there
>> any way to do so?
More information about the openjfx-dev