package com.roboclub.robobuggy.ui;
import javax.swing.JComponent;
import javax.swing.JTabbedPane;
/**
* @author Trevor Decker
* <p>
* is a robobuggy gui element that contains many other gui elements in seperate tabs
*/
public class RobobuggyGUITabs extends JTabbedPane {
/**
* Adds a tab without an explict title
*
* @param newTab the compoent to be added to a new tab
*/
public void addTab(JComponent newTab) {
this.addTab(newTab.getName(), newTab);
}
/**
* Adds a tab with an explicit title
*
* @param newTab the component to be added to a new tab
* @param title the name for that tab
*/
public void addTab(JComponent newTab, String title) {
this.addTab(title, newTab);
}
}