Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

TableView and horizontal scroll bar

921395Mar 2 2012 — edited Mar 5 2012
Hi
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 2 2012
Added on Mar 2 2012
8 comments
5,844 views