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
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 ...