Skip to content
Advertisement

GUI stuck.(Java netbeans),

I added a function in my GUI and it holds for forever. It was working fine before.The Picture Here is showing my stuck GUI

JavaScript

This is the function I wrote, and it just stuck there.

JavaScript

This is where it is called.

Advertisement

Answer

You got stuck because when you are finding the username, you are not breaking the while loop (so it would run forever). You should do something like:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement