🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.java
Article #1024

Re: KeyListener question

#1024
From: Calm, laughing mirrors stand alo...
Date: Thu, 30 Sep 1999 00:00
31 lines
1504 bytes
On Mon, 20 Sep 1999 20:21:57 +1000, "Aidan Marks" <aidan@free.net.au>
writ in bright toxic green crayon :

>How do I implement a KeyListener event to trap function keys (say F1 for
>help) in a java dos application and peform some action?
>
>I found this demo code, but generates weird errors (using MS VJ++ 6.0):
>
>class MyKeyListener implements KeyListener{
>    keyTyped(KeyEvent e){
>        if (e.getKeyCode() == KeyEvent.VK_ENTER) {
>            // do something
>        }
>    }
>}
>
>Thoughts?

Download sun JDK and try running it under that?

Microsoft is evil

What version of JDK does microsoft visual J implement?
>
daniel
--
Demo Track for my band... DYHM (Shuddup we 
haven't thought of a better name yet :P at
http://members.xoom.com/kraant/music/Innocence.bin
(Change the extension to .mp3 to listen... and no it
isn't totaly complete :P)
Technical Details
Message-ID: <37f2f919.7312002@news.bigpond.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <eYnF3.20$Q03.3589@nsw.nnrp.telstra.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d6db,eb8024a0664417c3
X-Google-Attributes: gid10d6db,public
From: kraant@depeche.com.SPAMTRAP (Calm, laughing mirrors stand alone)
Subject: Re: KeyListener question
Date: 1999/09/30
Message-ID: <37f2f919.7312002@news.bigpond.com>
X-Deja-AN: 531017502
References: <eYnF3.20$Q03.3589@nsw.nnrp.telstra.net>
X-Trace: newsfeeds.bigpond.com 938670595 139.134.192.97 (Thu, 30 Sep 1999 15:49:55 EST)
Organization: Telstra BigPond Internet Services (http://www.bigpond.com)
NNTP-Posting-Date: Thu, 30 Sep 1999 15:49:55 EST
Newsgroups: aus.computers.java