Hello,
In this lesson, I added an ActionListener to button1 that prompts the user to enter their name and SS ID using JOptionPane.showInputDialog. After the user enters their information, a message dialog is displayed showing the entered name and SS ID. When you run this program, it will display a form with 2 buttons, and when the user clicks the first button, they will be prompted to enter their name and SS ID.
Happy coding :)
Please share, like and subscribe.