Re: Listening to the Keyboard
From: Amey Samant (ameyas7_at_yahoo.com)
Date: 10/01/03
- Next message: Doyle: "Re: Package javax.swing not found in import."
- Previous message: Jørgen NøNorgaard: "Re: gcj problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 1 Oct 2003 07:19:17 -0700
"Peter Warder" <pwarder@blueyonder.co.uk> wrote in message >
> This works for me!
>
> while (!bExit) {
> // Watch the Keyboard
> if (m_in.ready()) {
> System.out.println("ENTER Detected");
> break;
> } else {
> System.out.println("No Keyboard");
> }
> m_in is declared a bufferedreader.
hi
it works only when you press Enter .... it doesnt actually listen to
the keyboard :D
& maybe this is not i was talking about
in my case i had to feed the input to child process as well which had
problems again as it s only at runtime that you know if the child is
waiting for input or no
neways
thanx for the code
amey
- Next message: Doyle: "Re: Package javax.swing not found in import."
- Previous message: Jørgen NøNorgaard: "Re: gcj problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]