O'Reilly logo

LWUIT 1.1 for Java ME Developers by Biswajit Sarkar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The TabbedPane

The TabbedPane widget has a number of sections or panes with one pane being visible at a time. Each pane has a tab which is like a flag. When a tab is clicked on, the corresponding pane becomes visible. A tab can have a title or an icon or both.

When tabs are added to a TabbedPane, the first to be added has an index of 0, the second has an index of 1 and so on. If there are N tabs, then the last one has an index of N-1. Note that adding a tab automatically adds the corresponding pane.

The panes can hold other components. Naturally, this means that a TabbedPane extends the Container class.

The given screenshot shows a tabbed pane with two tabs. The first tab is shown selected, and it contains a label with text on its pane.

We can select ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required