Article View: borland.public.jbuilder.java.language
Article #19181Re: KeyListener and TextFields?
From: Walter Draffin Jr.
Date: Tue, 03 Mar 1998 00:00
Date: Tue, 03 Mar 1998 00:00
26 lines
1504 bytes
1504 bytes
I tried adding the parameter and it says that the method is not found.
Am I doing this right?:
If this is how I add a listener:
textfield1.addKeyListener(new Applet1_Enter_keyAdapter(this));
Wouldn't this be how I remove it:
textfield1.removeKeyListener(Applet1_Enter_keyAdapter(this));
Greg Hamer wrote:
> you can - did you include the key listener to remove as a parameter? Your
> message
> does not show any parameters
>
> Walter Draffin Jr. wrote:
>
> > I know I can add a KeyListener to a textfield but what if I want to
> > remove a keyListener....It gives me there error of "method
> > removeKeyListener() not found in class java.awt.TextField". It doesn't
> > make sense to me that I can add a listener but can't remove one. Any
> > ideas or solutions?
> >
> > Thanks,
> > Walter Draffin
Technical Details
Message-ID:
<34FC05E7.2CFB82EA@telegraph.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<34EC60DF.B506D028@telegraph.net> <34F504DD.EA3202EE@wpo.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,33d7bf236dea2d54 X-Google-Attributes: gidf74b3,public From: "Walter Draffin Jr." <draffin@telegraph.net> Subject: Re: KeyListener and TextFields? Date: 1998/03/03 Message-ID: <34FC05E7.2CFB82EA@telegraph.net> X-Deja-AN: 330395895 Content-Transfer-Encoding: 7bit References: <34EC60DF.B506D028@telegraph.net> <34F504DD.EA3202EE@wpo.borland.com> Mime-Version: 1.0 To: Greg Hamer <ghamer@wpo.borland.com> Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.language