Question: please help me in this program. implement the instructions found in the photos using the employe class supplied, create a freame equal to the photo

please help me in this program. implement the instructions found in the photos using the employe class supplied, create a freame equal to the photo using the emplye class

 please help me in this program. implement the instructions found in

the photos using the employe class supplied, create a freame equal to

public class Employee

{

private String firstName;

private String middleName;

private String lastName;

private int id;

private String ssn;

private double earning;

private double hours;

private String salutation;

private double salaried;

private double hourly;

// Default Constructor

public Employee()

{

}

// Parameter constructor

public Employee (String firstName, String middleName, String lastName, int id, String ssn, double earning,

double hours, String salutation, double salaried, double hourly)

{

this.firstName = firstName;

this.middleName = middleName;

this.lastName = lastName;

this.id = id;

this.ssn = ssn;

this.earning = earning;

this.hours = hours;

this.salutation = salutation;

this.salaried = salaried;

this.hourly = hourly;

}

public int getId()

{

return id;

}

public void setId(int id)

{

this.id = id;

}

public String getSsn()

{

return ssn;

}

public void setSsn(String ssn)

{

this.ssn = ssn;

}

public String getSalutation()

{

return salutation;

}

public void setSalutation(String salutation)

{

this.salutation = salutation;

}

public String getFirstName()

{

return firstName;

}

public void setFirstName(String firstName)

{

this.firstName = firstName;

}

public String getMiddleName()

{

return middleName;

}

public void setMiddleName(String middleName)

{

this.middleName = middleName;

}

public String getLastName()

{

return lastName;

}

public void setLastName(String lastName)

{

this.lastName = lastName;

}

public double getEarning()

{

return earning;

}

public void setEarning(double earning)

{

this.earning = earning;

}

public double getSalariedWeek()

{

return salaried = earning * 40.0;

}

public void setSalariedWeek(double salaried)

{

this.salaried = salaried;

}

public double getSalariedYear()

{

return salaried = getSalariedWeek() * 52.0;

}

public void setSalariedYear(double salaried)

{

this.salaried = salaried;

}

public double getHours()

{

return hours;

}

public void setHours(double hours)

{

this.hours = hours;

}

public double getHourlyWeek()

{

return hourly = earning * hours;

}

public void setHourlyWeek(double hourly)

{

this.hourly = hourly;

}

public double getHourlyYear()

{

return hourly = getHourlyWeek() * 52.0;

}

public void setHourlyYear(double hourly)

{

this.hourly = hourly;

}

}

When the user filled the Hour Pay field after losing focus you must calculate Week payment and Year payment. Week payment and Year payment fields should be disable. The Add button will instantiate class Employee populating all attributes with the text of the components of your GUI then print all the fields into the console using method toString0 of the Employee class, like: Employee: id=1234, salutation-Darth, firstName-Vader, lastName-Skywaker, maidenName=Unknown, ssn=123-10-2045, earning_type-1, earnings- 30.0 The Cancel button will close the frame. Section 6.3-Earning Types: Your GUI will have two types of earnings, when you select: Hourly -the GUI will show all the components shows in section 6.2. Salaried-the GUI will change label Hour Pay." to "Salary:", and will hide the rest of the components . Your project will have at least 3 classes: Employee class with attributes of section 7.1. .EmployeeFrame class with the GUI of section 7.2 . EmployeeDriver - class who call EmployeeFrame Your program should implement any exception handling that been required

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!