public static final void addSemester(String s) {

    Font f = new Font("serif", Font.PLAIN, 24);
    JComponent pnlSemester1 = makeTextPanel2(s);
    tabbedPane2.addTab(s, pnlSemester1);
    tabbedPane2.setFont(f);
    initTabComponent2(tabbedPane2.getTabCount() - 1);

    JComponent pnlSettings1 = makeTextPanel1(s + " Settings");
    tabbedPane1.addTab(s + " Settings", pnlSettings1);
    tabbedPane1.setFont(f);
    initTabComponent(tabbedPane1.getTabCount() - 1);
    // frame.add(new GPA_Gui(), BorderLayout.NORTH);
  }
 private static void initTabComponent2(int i) {
   tabbedPane2.setTabComponentAt(i, new ButtonTabComponent2(tabbedPane2));
 }