Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>There are some hints below to guide you to solve the problem:</p> <ul> <li><p>Check the while loop, it seems to be blocking the <a href="http://docs.oracle.com/javase/tutorial/uiswing/concurrency/dispatch.html" rel="nofollow noreferrer">Event Dispatching Thread</a> (a.k.a. EDT) and that's freezing your GUI. Also take a look to <a href="http://docs.oracle.com/javase/tutorial/uiswing/concurrency/index.html" rel="nofollow noreferrer">Concurrency in Swing</a> trail for further details on how the EDT works and how to deal with it.</p></li> <li><p>You should avoid the use of multiple <a href="http://docs.oracle.com/javase/7/docs/api/javax/swing/JFrame.html" rel="nofollow noreferrer">JFrame</a> and consider use modal <a href="http://docs.oracle.com/javase/7/docs/api/javax/swing/JDialog.html" rel="nofollow noreferrer">JDialog</a> instead: <a href="http://docs.oracle.com/javase/tutorial/uiswing/misc/modality.html" rel="nofollow noreferrer">How to Use Modality in Dialogs</a>. Also take a look to this topic: <a href="https://stackoverflow.com/questions/9554636/the-use-of-multiple-jframes-good-bad-practice">The Use of Multiple JFrames, Good/Bad Practice?</a></p></li> <li><p>You may want to try <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Properties.html" rel="nofollow noreferrer">Properties</a> to store user passwords and get rid of handling file's IO by using <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Scanner.html" rel="nofollow noreferrer">Scanner</a> class. <strong>Note:</strong> ideally it should be done in a database but in this case you're doing this in a ".txt" file so I think properties would be more appropriate. Take a look to <a href="http://docs.oracle.com/javase/tutorial/essential/environment/properties.html" rel="nofollow noreferrer">this trail</a> and <a href="https://stackoverflow.com/questions/1318347/how-to-use-java-property-files">How to use Java property files?</a> to start with properties.</p></li> </ul> <p><strong>Off-topic:</strong></p> <ul> <li>Always try to follow <a href="http://www.oracle.com/technetwork/java/codeconventions-150003.pdf" rel="nofollow noreferrer">Java Code Conventions</a>.</li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload