When JavaFX tab should be collected by garbage collector?

Viewed 856

I have TabPane with Tabs in it. I'm creating new Tab, adding it to my TabPane. Then I close the tab and remove it from TabPane programmatically.

Tab is not set to null. Is it correct behavior? How to clean / destruct this Tab object?

2 Answers
Related