0
I have a method that cleans my components, however, it cannot clean the components that are inside a Tab
.
I was trying to apply it this way:
if (fieldValue instanceof Tab) {
for (Tab tab : ((Tab) fieldValue).getTabPane().getTabs()) {
if (tab instanceof Tab) {
// ((Tab) fieldValue).getTabPane().getContentBias().getChildrenUnmodifiable().clear();
((Tab) fieldValue).getTabPane().getTabs().clear();
}
}
What happens is that I can’t get hold of these components, and in my attempt, she ends up removing all the flaps. Does anyone have any suggestions, any way to give a getComponenets()
or something like ?
Detail, that the fieldValue
has all instantiated and Tab-type components.
in getChildren() it says "cannot resolve method getChildren()"
– G1Win
I’ve never done it this way, really can’t access getChildren() directly from getContent(). I’m correcting my answer.
– Gustavo Fragoso
I added one more way of resolution and some considerations.
– Gustavo Fragoso