I have a strange problem with putting a Canvas3DPanel into changing containers.
Description:
I have three ExtXith3DEnvironments with a simple rotating cube in each.
I have a JFrame with a GridLayout(1, 1)
It holds a JTabbedPane with three JPanels with GridLayout(1, 1)
The first one gets a Canvas3DPanel
When tabs are switched, the Canvas3DPanel is removed from the JPanel in the current (first) tab and added to the JPanel of the new current tab
Additionally the Canvas3DPanel is removed from the current Environment and added to the new current one.
This works for 0 -> 1, 1->2 or any other permutation.
But… When I switch to a tab that previously holded the Canvas3DPanel it doesn’t get rendered. It seems like the problem is once a Canvas3D has been removed from its View you cannot re-add it.
I’ve attached my test code.
Thanks in advance
Qudus