protected static JTabbedPane createTabbedPane(Color bg, String title, JPanel... jPanels) {
        JTabbedPane tabPane = null;

        if (jPanels != null) {
            tabPane = new JTabbedPane();
            tabPane.setBackground(bg);
            tabPane.setPreferredSize(GUIConstants.DEFAULT_TAPPEDPANE_DIM);
            tabPane.setBorder(BorderFactory.createTitledBorder(BorderFactory.createLineBorder(bg), title));

            for (JPanel p : jPanels) {
                tabPane.add(p);
            }
        }

        return tabPane;
    }