public boolean action(Event e, Object arg) {


		int i, j, num;
		boolean ok = true;

        if (e.target == Button1) {
			UpdateParams(1);
		}
        if (e.target == Button2) {
			UpdateParams(2);
		}
        if (e.target == Button3) {
			UpdateParams(3);
		}
        if (e.target == Button4) {
			UpdateParams(4);
			Efloys.appcontext.showStatus("Button #4");
		}
        if (e.target == ButtonDefault) {
			DefaultParams();
			Efloys.appcontext.showStatus("Button #5");
		}
        if (e.target == ButtonCancel) {
			ok = false;
		}
		
		//TitleLabel.resize(TitleLabel.preferredSize());
		if (ok) {
			Efloys.ResetPopulation = true;
			Efloys.First = true;
		}

        this.setVisible(false);
        this.dispose();
        return true;

	}