Hi friends , I am doing my college assigment .I am struck up in populating a pop up window that contains multiple text boxes when radiobutton is clicked.Please suggest relevant method and some code .My task is below .
Homework #2
1. Create a GUI that has two JRadioButtions which allow a user to select between an employee and a manager. (20 points)
2. Create a GUI that pops up if an employee is selected. This new window should contain JLabels with JTextFields that allow the user to enter in all the employee's relevant information - e.g. Name, Title, Age, and Salary. Use the same inputs from the Jane Doe case in Homework #1. The new window should also allow the user to raise the employee's salary by a certain percentage - JTextField (% Increase). Use the employee raiseSalary(int percent) method from Homework #1. Lastly, the new window should include a calculate button which computes and outputs the new salary when pressed. In this case, the new salary would be 82500.0. (20 points)
3. Create a GUI that pops up if a manager is selected. This new window should contain JLabels with JTextFields that allow the user to enter in all the manager's relevant information - e.g. Name, Title, Age, Years of Experience, Highest Degree Earned, Salary, and Promotion Bonus. Use the same inputs from the John Doe case in Homework #1. The new window should also allow the user to raise the manager's salary by a certain percentage - JTextField (% Increase). Use the manager raiseSalary(int percent) method from Homework #1. Lastly, the new window should include a calculate button which computes and outputs the new salary when pressed. In this case, the new salary would be 115000.0. (20 points)
4. Create a GUI error message that pops up if the user enters invalid information into the GUI from question #2. (20 points)
5. Create a GUI error message that pops up if the user enters invalid information into the GUI from question #3. (20 points)
My code is below,