I have a button "Login" in my GUI, when I press it, it goes here:
private void loginBtn(java.awt.event.ActionEvent evt) {
Login log = new Login(robot, driver, username, password, server, url);
logStatus = log.login();
Control check = new Control();
check.loop();}
Well, I'd like that when I log in, it logs in and then start playing the loop. The loop
check.loop();
is an infinite loop but the GUI stays locked during all the time running it from the action performed of the login button. So how can i call the loop without lock the GUI?