Article View: aus.computers.java
Article #1031Re: KeyListener question
From: SkoZombie
Date: Wed, 06 Oct 1999 00:00
Date: Wed, 06 Oct 1999 00:00
44 lines
1840 bytes
1840 bytes
"Calm, laughing mirrors stand alone" wrote:
>
> 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?
FYI, http://java.sun.com
I have found that 'clones' of the JDK [such as blackdown.org's Java
port] don't handle keylisteners overly nicely :((
>
> Microsoft is evil
Understatement!
>
> What version of JDK does microsoft visual J implement?
> >
> daniel
VJ++ isn't very JDK compatible. So don't be suprised when it doesn't
work ;)
Continuing on what was mentioned about, ignore VJ++, it is a corruption
of the java language. Use JDK! Sun have release Java Workshop 3 for
free. I *purchased* JWS 2.0 and I love it to death. Now my only problem
is I don't use windows much anymore!
Sko
Technical Details
Message-ID:
<37FB2BFF.6D86726C@Bigfoot.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<eYnF3.20$Q03.3589@nsw.nnrp.telstra.net> <37f2f919.7312002@news.bigpond.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d6db,eb8024a0664417c3 X-Google-Attributes: gid10d6db,public From: SkoZombie <SkoZombie@Bigfoot.com> Subject: Re: KeyListener question Date: 1999/10/06 Message-ID: <37FB2BFF.6D86726C@Bigfoot.com> X-Deja-AN: 533434822 Content-Transfer-Encoding: 7bit References: <eYnF3.20$Q03.3589@nsw.nnrp.telstra.net> <37f2f919.7312002@news.bigpond.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: The University of Newcastle Mime-Version: 1.0 Newsgroups: aus.computers.java