Muki
Muki

Reputation: 3641

Javafx 2 TreeView - hide root item

I created my own TreeView in JavaFX 2 with this tutorial. However I want to hide my root node.

How it looks like right now:

How it should look:

thanks, Muki

Upvotes: 25

Views: 9118

Answers (1)

Uluk Biy
Uluk Biy

Reputation: 49185

Hiding the root item can be done by

treeView.setShowRoot(false);

Upvotes: 42

Related Questions