J2ME LWUIT TabbedPane:如何在选项卡中添加多个组件?
如何在中添加多个组件(例如Label
、Textfield
和Button
) em>单个选项卡?
我尝试创建一个包含多个组件的新表单,然后将该表单作为新选项卡添加到 TabbedPane 中,但它引发了异常: java/lang/IllegalArgumentException: A form无法添加到容器中。
Any帮助/想法/提示/链接将不胜感激。
How can multiple components ( for example a Label
, a Textfield
and a Button
) can be added in a single Tab?
I tried creating a new Form with multiple components, then added that form into the TabbedPane as new Tab, but it threw an exception : java/lang/IllegalArgumentException: A form cannot be added to a container.
Any help/ideas/hints/links will be much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
TabbedPane 与用于显示不同选项卡的不同组件配合使用。
每个选项卡都需要一个单独的容器,而不是表单!
TabbedPane works with different components used to display the different tabs.
You need a separate container for each tab not a form!