private boolean setFrameworkFieldsAndValidate(Framework f) {
		if (f == null) {
			f = new Framework();
		}
		String name = txtName.getText();
		String currentVersion = txtCurrentVersion.getText();
		String homePage = txtHomePage.getText();
		String creator = txtCreator.getText();
		String lastReleaseDate = txtReleaseDate.getText();
		String description = txtDescription.getText();
		String platform = txtPlatform.getText();

		if (name.isEmpty() || name.length() < 3) {
			validationError("Name lenght should be greater than 3");
		} else if (currentVersion.isEmpty()) {
			validationError("You need to inform the framework current version");
		} else if (creator.isEmpty()) {
			validationError("Creator is obligatory");
		} else if (platform.isEmpty()) {
			validationError("Platform is obligatory");
		}
		// passed all validations...
		else {
			try {
				f.setDescription(description);
				f.setHomePage(homePage);
				f.setName(name);
				f.setCreator(creator);
				f.setPlatform(platform);
				// can't fail the following fields, if so, it won't validate...
				f.setCurrentVersion(Double.valueOf(txtCurrentVersion.getText()));
				// date isn't obligatory.. but user needs to set a valid date.
				if (!lastReleaseDate.isEmpty()) {
					Date releaseDate = dataFormatter.parse(lastReleaseDate);
					f.setLastReleaseDate(releaseDate);
				}
				return true;
			} catch (ParseException e) {
				validationError("Check Last Release Date. Use format "
						+ dataFormatter.toPattern());
			} catch (NumberFormatException e) {
				validationError("Invalid version");
			}
		}
		return false;
	}