The example demonstrates how to specify the tabs alignment within the JYTabbedPane container and the alignment within a single Tab. To avoid that the tab width becomes too small or too large it also demonstrates how to set a minimum and maximum tab size.

All relevant lines are highlighted. Press the "Run..." button to start the demo.