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 05-10-2008, 04:44 PM
Member
 
Join Date: Apr 2008
Location: Bangladesh
Posts: 5
dotnet007 is on a distinguished road
press any key to continue
in java, how to solve press any key to continue.

console 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. if any body can please help me. me.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-10-2008, 06:28 PM
sukatoa's Avatar
Senior Member
 
Join Date: Jan 2008
Location: Cebu City, Philippines
Posts: 508
sukatoa is on a distinguished road
Send a message via Yahoo to sukatoa
Quote:
console is waiting for pressing any key
Yah?

Quote:
if any type of key is pressed program take next action other wise it wail.
and then?

Quote:
i faced this type of problem and want to solve.
What was your problem all about?

Can you please post more info?

What should your program do?
__________________
A specific, detailed, simple, well elaborated, and "tested before asking" question may gather more quick replies. hopefully
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 05-10-2008, 08:20 PM
Member
 
Join Date: Apr 2008
Location: Bangladesh
Posts: 5
dotnet007 is on a distinguished road
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.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 05-11-2008, 06:19 AM
sukatoa's Avatar
Senior Member
 
Join Date: Jan 2008
Location: Cebu City, Philippines
Posts: 508
sukatoa is on a distinguished road
Send a message via Yahoo to sukatoa
Yep.... in GUI.... not in console

You can test it on textfield.

KeyPressed, KeyReleased or keyTyped.
KeyListeners
__________________
A specific, detailed, simple, well elaborated, and "tested before asking" question may gather more quick replies. hopefully
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
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
press any key to continue dotnet007 Java Blogs 0 05-10-2008 04:35 PM
Demonstration of break and continue keywords Java Tip java.lang 0 04-17-2008 08:47 PM
How to use Continue with a label Java Tip java.lang 0 04-17-2008 08:46 PM
How to use Continue Java Tip java.lang 0 04-17-2008 08:46 PM
Press any key to continue/press enter JT4NK3D New To Java 1 11-17-2007 10:27 PM


All times are GMT +3. The time now is 11:35 PM.


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