Results 1 to 4 of 4
Thread: press any key to continue
- 05-10-2008, 04:44 PM #1
Member
- Join Date
- Apr 2008
- Location
- Bangladesh
- Posts
- 5
- Rep Power
- 0
- 05-10-2008, 06:28 PM #2console is waiting for pressing any key
if any type of key is pressed program take next action other wise it wail.
i faced this type of problem and want to solve.
Can you please post more info?
What should your program do?freedom exists in the world of ideas
- 05-10-2008, 08:20 PM #3
Member
- Join Date
- Apr 2008
- Location
- Bangladesh
- Posts
- 5
- Rep Power
- 0
I want to take such type of input where JVM don't wait for pressing ENTER.
When user press just a key it return and don't wait for pressing enter.
i want that, if any type of key is pressed it return the key that i pressed.
is't is possible to implement in java by using "KeyEvent"....
N.B:I am new in Java-foram. and want to be regular member.
- 05-11-2008, 06:19 AM #4
Yep.... in GUI.... not in console
You can test it on textfield.
KeyPressed, KeyReleased or keyTyped.
KeyListenersfreedom exists in the world of ideas
Similar Threads
-
Demonstration of break and continue keywords
By Java Tip in forum java.langReplies: 0Last Post: 04-17-2008, 08:47 PM -
How to use Continue with a label
By Java Tip in forum java.langReplies: 0Last Post: 04-17-2008, 08:46 PM -
How to use Continue
By Java Tip in forum java.langReplies: 0Last Post: 04-17-2008, 08:46 PM -
Press any key to continue/press enter
By JT4NK3D in forum New To JavaReplies: 1Last Post: 11-17-2007, 10:27 PM
Bookmarks