import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Tab;
import javafx.scene.control.TabPane;
import javafx.scene.control.TextField;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;


public class SIOFBTest {

    public static void main(String[] args) {
        Application.launch(TabsTest.class, args);
    }

    public static class TabsTest extends Application {

        @Override
        public void start(final Stage mainStage) {
            TextField textField = new TextField("Field with text");
            final Tab mainTab = new Tab("Main Tab", textField);
            final Tab firstTab = new Tab("And_again_yet_another_one_very_long_tab_name_for_test_purposes_to_test string", textField);
            final Tab secondTab = new Tab("And_again_yet_another_one_very_long_tab_name_for_test_purposes_to_test_yet_another string", textField);

            final TabPane tabPane = new TabPane(mainTab, firstTab, secondTab);
            final BorderPane borderPane = new BorderPane();
            borderPane.setTop(tabPane);
            Scene scene = new Scene(borderPane, 400, 300);
            mainStage.setScene(scene);
            mainStage.show();
        }
    }
} 