Results 1 to 4 of 4
  1. #1
    dotnet007 is offline Member
    Join Date
    Apr 2008
    Location
    Bangladesh
    Posts
    5
    Rep Power
    0

    Smile 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.:)

  2. #2
    sukatoa's Avatar
    sukatoa is offline Senior Member
    Join Date
    Jan 2008
    Location
    Cebu City, Philippines
    Posts
    556
    Rep Power
    7

    Default

    console is waiting for pressing any key
    Yah?

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

    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?
    freedom exists in the world of ideas

  3. #3
    dotnet007 is offline Member
    Join Date
    Apr 2008
    Location
    Bangladesh
    Posts
    5
    Rep Power
    0

    Default

    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.

  4. #4
    sukatoa's Avatar
    sukatoa is offline Senior Member
    Join Date
    Jan 2008
    Location
    Cebu City, Philippines
    Posts
    556
    Rep Power
    7

    Default

    Yep.... in GUI.... not in console

    You can test it on textfield.

    KeyPressed, KeyReleased or keyTyped.
    KeyListeners
    freedom exists in the world of ideas

Similar Threads

  1. Demonstration of break and continue keywords
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-17-2008, 08:47 PM
  2. How to use Continue with a label
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-17-2008, 08:46 PM
  3. How to use Continue
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-17-2008, 08:46 PM
  4. Press any key to continue/press enter
    By JT4NK3D in forum New To Java
    Replies: 1
    Last Post: 11-17-2007, 10:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •