| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Java |
-> MSGID: 2:221/360.20 34662459 -> REPLY: 1:247/101 29f4a5d4 -> >>> Ok, in J++, how exactly do I get a simple program to -> >>> determine which key has been pressed WITHOUT having to press the -> >>> enter key each time? -> >> java.awt.Component.keyDown() (JDK 1.0.2) or -> >> java.awt.Component.processKeyEvent() (JDK 1.1) -> > thanks, but can you show me how to use it in source... I'm not that -> > good at it yet., -> Those events are of course sent to a component (Window, Frame etc.). -> If you are looking for getch() equivalent for Java to be used in text -> mode programs, then -> I'm sorry, I cannot help. I'm new at this, too :-) Ok, thanks for your code, but your right, it's the Application type which I am working for, so the applet stuff will not help. I have gone through many samples, and NONE of them work, nor does anyone I know, know how to grab a key in a J++ application :( --- Platinum Xpress/Win/Wildcat5! v2.0 ----------------> * Origin: Albert's Point/2 in Finland, Europe (2:221/360.20) * Origin: Doctor On Board BBS: Niagara's Medical Host for Info (1:247/101) |
|
| SOURCE: echomail via exec-pc | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.