public void addTab(final String name) {
		int i;
		int matchCount = 0;// how many tabs have that name
		String title;
		for (i = 0; i < this.tabbedPane.getTabCount(); i++) {
			title = this.tabbedPane.getTitleAt(i);
			if (title.equals(name)) {
				matchCount++;// exactly the same name
			}
			else if (title.matches(name + "\\(\\d\\)")) {
				matchCount++;// 1 digit numbers
			}
			else if (title.matches(name + "\\(\\d\\d\\)")) {
				matchCount++;// two digit numbers
			}
			else if (title.matches(name + "\\(\\d\\d\\d\\)")) {
				matchCount++;// three digit numbers
			}
		}
		if (matchCount <= 0) {
			this.tabbedPane.addTab(name, ScrollPane.getInstance());
		}
		else {
			this.tabbedPane.addTab(name + "(" + matchCount + ")",
					ScrollPane.getInstance());
		}
	}