Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

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.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-17-2007, 04:30 PM
JT4NK3D's Avatar
Member
 
Join Date: Nov 2007
Posts: 50
JT4NK3D is on a distinguished road
Press any key to continue/press enter
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.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-17-2007, 10:27 PM
Senior Member
 
Join Date: Jul 2007
Posts: 1,189
hardwired is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
simulate form type=button press with java application redmoonzer01 Networking 1 03-29-2008 07:28 AM
Java Control Panel not saving changes when I press OK RebelScum New To Java 0 03-21-2008 05:22 PM
Reading Char without needing to press enter x0psci New To Java 0 11-23-2007 05:28 PM
enter data from an optic device bbq Advanced Java 2 07-04-2007 09:02 AM
Javascript and enter button Eric Advanced Java 1 06-11-2007 10:39 PM


All times are GMT +3. The time now is 09:20 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org