开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜