Results 1 to 5 of 5
  1. #1
    ZARA-T is offline Member
    Join Date
    Jun 2013
    Posts
    3
    Rep Power
    0

    Default how to flush the keyboard buffer in java?

    Hi,
    I am writing an app for mobile ( j2me) & i need to flush the keyboard buffer but i can not .
    I googled a lot but do not find any useful answer . tnx for any answer .
    best regard

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,458
    Rep Power
    20

    Default Re: how to flush the keyboard buffer in java?

    Moved from Advanced Java

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    ZARA-T is offline Member
    Join Date
    Jun 2013
    Posts
    3
    Rep Power
    0

    Default Re: how to flush the keyboard buffer in java?

    no answerrrrrrrrrrr!!!!!!!!!!!!!!!

  4. #4
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    4,033
    Rep Power
    6

    Default Re: how to flush the keyboard buffer in java?

    Not everyone is familiar with j2me. Sometimes, it can be several days for folks to respond, even on common topics. Actually, I never thought about flushing an input device. Can't you test if there are any characters awaiting input and read the input until no more characters are available?

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  5. #5
    ZARA-T is offline Member
    Join Date
    Jun 2013
    Posts
    3
    Rep Power
    0

    Default Re: how to flush the keyboard buffer in java?

    tnx for Ur answer , if i find a solution i will post it here.

Similar Threads

  1. Java Help in storing a Buffer
    By anonb in forum New To Java
    Replies: 8
    Last Post: 10-25-2012, 11:31 PM
  2. how to flush the buffer?
    By oszc in forum New To Java
    Replies: 2
    Last Post: 08-30-2011, 11:37 AM
  3. Java Sound Buffer Size
    By morris4019 in forum New To Java
    Replies: 0
    Last Post: 06-10-2011, 01:51 AM
  4. java rmi buffer error
    By ans2104 in forum Networking
    Replies: 1
    Last Post: 03-06-2010, 01:09 AM
  5. Replies: 2
    Last Post: 08-27-2008, 04:24 PM

Tags for this Thread

Posting Permissions

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