Generated Object

A JTabbedPane

Value Argument

The tabbedPane() node accepts no value argument.

Attributes

In addition to JComponent attributes, tabbedPane supports these additional attributes:

Content

All immediate children of the JTabbedPane that are Components are added to the tabbed pane as tabs. In addition, these children also can have the following attributes, which apply to the tab representiong those components

Examples

tabbedPane(tabPlacement: JTabbedPane.LEFT) {
  label('One', title:'One', tabToolTip:'Uno!')
  label('Green', title:'Green', tabBackground:java.awt.Color.GREEN)
  label('Stop Operation', title:'Stop Operation', tabMnemonic:'O')
  label('Stop Operation', title:'Stop Operation', tabDisplayedMnemonicIndex:5)
}
   tabbedPane() {
      panel(name:'One') {
            label('One')
      }
      panel(name:'Two') {
            label('Two')
      }
    }