Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #39416
| Path | csiph.com!news.swapon.de!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Eric Sosman <esosman@comcast-dot-net.invalid> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: How can I read individual keystrokes? |
| Date | Sat, 4 Apr 2020 20:38:58 -0400 |
| Organization | A noiseless patient Spider |
| Lines | 16 |
| Message-ID | <r6b9b2$tkv$1@dont-email.me> (permalink) |
| References | <r6b830$hra$1@dont-email.me> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Sun, 5 Apr 2020 00:38:58 -0000 (UTC) |
| Injection-Info | reader02.eternal-september.org; posting-host="3848bc48a79cc2634b5db8bdba1e050f"; logging-data="30367"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX185XeMPVIRnMZIi4kkzDFvx" |
| User-Agent | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 |
| Cancel-Lock | sha1:jrFpXJXkPb51TOx/8TmxaCY5euE= |
| In-Reply-To | <r6b830$hra$1@dont-email.me> |
| Content-Language | en-US |
| Xref | csiph.com comp.lang.java.programmer:39416 |
Show key headers only | View raw
On 4/4/2020 8:17 PM, Martin Gregorie wrote:
> I have a need to read individual key presses as they are made. [...]
> I have a feeling that I'm missing something obvious and so would
> appreciate it if any of you can point me in the direction of a pure Java
> way to capture individual key presses.
In a Swing setting this should be straightforward ("should be" --
hah!) even if somewhat verbose. For a "console" app I'm not so sure,
and for JavaFX I've no clue at all.
Can you offer any details of your application?
--
esosman@comcast-dot-net.invalid
Trump wants to star as The Lyin' King.
Two hundred ninety-one days to go.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How can I read individual keystrokes? Martin Gregorie <martin@mydomain.invalid> - 2020-04-05 00:17 +0000
Re: How can I read individual keystrokes? Eric Sosman <esosman@comcast-dot-net.invalid> - 2020-04-04 20:38 -0400
Re: How can I read individual keystrokes? Arne Vajhøj <arne@vajhoej.dk> - 2020-04-04 22:04 -0400
Re: How can I read individual keystrokes? Martin Gregorie <martin@mydomain.invalid> - 2020-04-05 11:22 +0000
csiph-web