TableView and horizontal scroll bar
921395Mar 2 2012 — edited Mar 5 2012Hi
I need to show horizontal scroll bar in my TableView - there are many columns in my view. I tried to put it into the ScrollPane but it takes no any effect.. Is there any ability to make scrollable treeview via FXML layout file?
My code is
<ScrollPane fitToHeight="true" fitToWidth="true" hbarPolicy="ALWAYS" VBox.vgrow="ALWAYS">
<content>
<TableView fx:id="resultsTbl">
<columns>
<TableColumn text="col 1" prefWidth="60" />
<TableColumn text="col 2" prefWidth="60" />
<TableColumn text="col 3" prefWidth="130" />
........cut....
</columns>
<items>
</items>
</TableView>
</content>
</ScrollPane>
Thanks
Edited by: 918392 on 02.03.2012 4:51