Employee name and Job title

Sep 10 2023 6:34 AM

Create an interface that contains two JTextFields, a JButton, and three JLabels. When the user types an employee’s first and last names (separated by a space) in a JTextField, the employee’s job title is displayed in a second JTextField. Include two JLabels to describe the JTextFields used for data entry. Also include a third JLabel that displays the employee’s title or an error message if no match is found for the employee. Use parallel arrays to store the employees’ names and job titles.


Answers (2)