Hi. I'm learning swing and trying to create a desktop application. The first step to this application is a login screen. So far everything has worked until I implemented the logic for getting the exit buttons name and checking if that button is clicked and if so then exit the system. I'm not sure what I'm doing wrong, but when I click the button, I get an error I don't understand. Thanks in advance
screen code: https://pastebin.com/K0scy310
error message: https://pastebin.com/CQMKJgpm