public boolean action(Event e, Object arg) {


		int i, j;

        if (e.target == primary) {
			TitleLabel.setText("Primary Traits");
			cardLayout.show(TablePanel,"Primary");
		}
        if (e.target == secondary) {
			TitleLabel.setText("Secondary Traits");
			cardLayout.show(TablePanel,"Secondary");
		}
        if (e.target == environ) {
			TitleLabel.setText("Environmental Characteristics");
			cardLayout.show(TablePanel,"Environ");
		}
        if (e.target == chromo) {
			TitleLabel.setText("The Chromosomes");
			cardLayout.show(TablePanel,"Chromo");
		}
        if (e.target == fitness) {
			TitleLabel.setText("Fitness Table");
			cardLayout.show(TablePanel,"Fitness");
		}
        if (e.target == history) {
			TitleLabel.setText("History");
			cardLayout.show(TablePanel,"History");
		}
        if (e.target == test) {
			TitleLabel.setText("Test");
			cardLayout.show(TablePanel,"Test");
		}

        //if (e.target == log) {
		//	TitleLabel.setText("");
		//	Efloys.deb.toFront();
		//}

        if (e.target == quitit) {
            this.hide();
            this.dispose();
            return true;
            }
		
		TitleLabel.resize(TitleLabel.preferredSize());
        return true;

	}