You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:
have access to post topics
communicate privately with other members (PM)
not see advertisements between posts
have the possibility to earn one of our surprises if you are an active member
access many other special features that will be introduced later.
How can i make the execution of my code stop and wait until the user presses any key? And if that isn't very easy, how can i make it wait until the user presses the return key? Thnx in advance.
Depends on what it is that you want to stop the execution of. You might be able to use a thread with a while loop and sleep delay. You can bind a key to the component and use it to interrupt the thread. Or you might be able to use wait and notify.
Have a look at Lesson: Concurrency for some ideas.