Adding Tab dynamically
I have a tab and want another tab with click of button. Another tab has VBox (Contains charts,grid etc). It gives an error while adding code addChild(), removeChild() on button click. The error is of null object referen开发者_JAVA百科ce.
Please suggest me.
Thanks
You're probably trying to access children of a tab that has not been initialized yet. The simplest solution is to change the creationPolicy property of your TabNavigator to "all".
You can see an explanation of creationPolicy in the Adobe documentation.
If this is not the solution, you're probably going to have to post more specific code.
精彩评论