public void dispose() {
	if (tabs != null) {
		for (int i = 0; i < tabs.length; i++) {
			GraphicsTab tab = tabs[i];
			tab.dispose();
		}
	}
	tabs = null;
	if (resources != null) {
		for (int i = 0; i < resources.size(); i++) {
			if (resources.get(i) instanceof Resource) {
				((Resource)resources.get(i)).dispose();
			}
		}
	}
	resources = null;
	
	if (backMenu != null) {
		backMenu.dispose();
		backMenu = null;
	}
}