Answered step by step
Verified Expert Solution
Question
1 Approved Answer
CSIS - 2 2 5 , Advanced Programming Lab 1 : Java RefresherAdvanced Programming: Lab Exam Version 1 Employee Management System Write a class public
CSIS Advanced Programming Lab : Java RefresherAdvanced Programming:
Lab Exam Version
Employee Management System
Write a class public EmployeeManagementInterface that extends JFrame, the class implement a GUI
interface for employee management system.
The interface looks like the following
The class attributes as the following :
JLabel firstNameLabel, lastNameLabel, typeLabel, dataLabel;
JTextField firstName, lastName, employeeType;
JTextArea employeeData;
JButton enterButton, fileButton, printEmployee;
implement the ActionPerformed method to do the following:
when pressing on Create File button, your program should create a sequential access file with name
employeefile.
When pressing on Enter button, your program should construct an employee object according to the
employee type entered by the user in the employeeType text field Boss ComissionWorker,
HourlyWorker, PieceWorker with first and last name entered from the text fields, such that when
pressing enter button the employee object is created and added to the sequential file.
When pressing on print employee data bottom your program should open the file and add to the text
area the data of the employee object with first and last name in the text fields.
Not using AI CHATGPT
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started