J2ME LWUIT TabbedPane:如何在选项卡中添加多个组件?

发布于 2024-09-15 14:01:48 字数 263 浏览 2 评论 0原文

如何在中添加多个组件(例如LabelTextfieldButton) 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

TabbedPane 与用于显示不同选项卡的不同组件配合使用。

new TabbedPane().addTab(title, component)

每个选项卡都需要一个单独的容器,而不是表单!

TabbedPane works with different components used to display the different tabs.

new TabbedPane().addTab(title, component)

You need a separate container for each tab not a form!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文