How pause the main thread and restart it with another thread
I am making my own console with JTextArea. I am trying to make a scan method to get input but I cannot get the program to stop for the enter to be pushed. I am using a Document filter to regulate text that appears on the screen if that helps.
Aucun commentaire:
Enregistrer un commentaire