Interface TabbedPaneBuilder

All Superinterfaces:
ComponentBuilder<Void,JTabbedPane,TabbedPaneBuilder>

public interface TabbedPaneBuilder extends ComponentBuilder<Void,JTabbedPane,TabbedPaneBuilder>
A builder for a JTabbedPane.
 
 Components.tabbedPane()
         .tab("First Tab", new JLabel("First"))
         .tab("Second Tab", new JLabel("Second"))
         .build();

 Components.tabbedPane()
         .tabPlacement(SwingConstants.TOP)
         .tabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT)
         .tabBuilder("First Tab", new JLabel("First"))
         .mnemonic(KeyEvent.VK_1)
         .toolTipText("This is the first tab")
         .icon(firstTabIcon)
         .add()
         .tabBuilder("Second Tab", new JLabel("Second"))
         .mnemonic(KeyEvent.VK_2)
         .toolTipText("This is the second tab")
         .icon(secondTabIcon)
         .add()
         .build();