开发者

J2ME LWUIT TabbedPane: How to add mutliple components in a tab?

开发者 https://www.devze.com 2023-01-12 16:25 出处:网络
How can multiple components ( for example a Label, a Textfield and a Button ) can be added in a single Tab?

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, bu开发者_运维百科t it threw an exception : java/lang/IllegalArgumentException: A form cannot be added to a container.

Any help/ideas/hints/links will be much appreciated.


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!

0

精彩评论

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