package org.javabuilders.swing.samples.resources; import java.util.Calendar; public class Person { private String firstName; private String lastName; private Calendar birthDate; public Person() {} public Person(String firstName, String lastName, Calendar birthDate) { super(); this.firstName = firstName; this.lastName = lastName; this.birthDate = birthDate; } /** * @return the firstName */ public String getFirstName() { return firstName; } /** * @param firstName the firstName to set */ public void setFirstName(String firstName) { this.firstName = firstName; } /** * @return the lastName */ public String getLastName() { return lastName; } /** * @param lastName the lastName to set */ public void setLastName(String lastName) { this.lastName = lastName; } /** * @return the birthDate */ public Calendar getBirthDate() { return birthDate; } /** * @param birthDate the birthDate to set */ public void setBirthDate(Calendar birthDate) { this.birthDate = birthDate; } @Override public String toString() { return String.format("%s %s", firstName, lastName); } }