Access a JavaFX TextArea within Tab returned from a TabPane
Clash Royale CLAN TAG #URR8PPP Access a JavaFX TextArea within Tab returned from a TabPane I would like to access a text area placed within a Tab. All the Tabs in the TabPane will have a TextArea. Unfortunately Tab is not an interface and there does not seem a way to change the type held inside of the TabPane so I can not see a way to make code know that there is going to be a TextArea inside of the generic tab without keeping a separate list of them somewhere outside. TabPane can only return a Tab and tab does not distinguish that it holds a TextArea and even if I make an extension of Tab and give it to the TabPane it will still only return a Tab. Keeping an outside list seems really hacky and I dont think that would ever be the intended design. So what am I missing here. I am not using FXML. You can of course cast the content of a Tab . A more direct way than looking for it in this node is probably more hacky than storing the TextArea s in a proper data s...