




























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A java-based employee management application that allows users to perform various operations such as adding, editing, deleting, and searching for employee information. The application features a user-friendly interface with text fields, combo boxes, and buttons for data entry and manipulation. A detailed explanation of the program structure, including the main components (login and mainform frames, and the employee class), as well as the implementation of key functionalities like login, data entry, editing, and deletion. The testing plan covers various scenarios, including successful and failed cases, demonstrating the application's robustness. While the user interface may not be visually appealing, the focus is on providing a functional and practical solution for managing employee data effectively.
Typology: Transcriptions
1 / 36
This page cannot be seen from the preview
Don't miss anything!





























Qualification BTEC Level 5 HND Diploma in Computing
Unit number and title Object Oriented Programming with Java
Submission date Date Received 1st submission
Re-submission Date Date Received 2nd submission
Student Name Hoang Minh Tam Student ID GCH
Class GCH1005 Assessor name Do Hong Quan
Student declaration I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand that making a false declaration is a form of malpractice.
Student’s signature Hoang Minh Tam
Grading grid
Grade (0-10)
Grade: Assessor Signature: Date: IV Signature:
In this report, I will create an application that supports employee management using Java. This app helps me to know the exact information of my employees and control all their information
Figure 1 : Use case diagram
Figure 2 : Log in form
Figure 3 : Log in form when you do not tick "Show password"
Figure 4 : Log in form when you ticked "Show password"
Figure 6 : Program structure
Figure 7 : All the elements in the structure MainForm
Figure 9 : Employee class ( 1 / 2 )
Figure 10 : Employee class ( 2/2 )
Figure 11 : Show password and Exit function o In this function, default password part is set as "**", I use if in this case if user want to display password by pressing checkbox button, otherwise default password will change to " **"
o The function below simply stops the program if the user presses the. button
o In the login function, I use if else to check the attempt variable (the variable is defined in the 15th line of the code), if the user enters the correct username and password, it will go directly to the MainForm, otherwise, it will report error and if it is wrong more than 4 times, the system will lock the text field of the password and prevent the user from entering it again.
Figure 12 : Login algorithm
o In this function I use to design the table of the interface, I will default to the selected gender as Male and use the "Employee" class I have defined to define each object.
Figure 14 : Import library
Figure 15 : MainForm interface
o Here, I use idx so that the program gets that the column is selected or not, -1 means no function has been selected yet. Every time a function is deleted, it will jump to the next line, to the last row, it will automatically jump to the first function.
o As you can see, at the end of the line I use a function called "loadDataFromTable", I will show it in the image below.
Figure 16 : Delete function