🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #9417

Re: Default (Enter) button?

#9417
From: Petr Kozelka
Date: Wed, 15 Mar 2000 00:00
14 lines
1139 bytes
"Tor Iver Wilhelmsen" <tor.wilhelmsen@sds.no> wrote in message
news:u3dpsk6ar.fsf@sds.no...
> "Johan Forsberg" <jfo@SPAM_SPAM_EGGS_SPAMstmf.se> writes:
>
> > Warning: the enter key will NOT cause ok to be clicked if you are in a
text
> > component. Not even if it is a single line JTextField.
>
> No, but if you add the same ActionListener for the TextField as for
> the OK button, it should have an equivalent effect.

Isn't there any more elegant way ?
What if I have twenty text fields in the form ? And it is not so unusual...
Technical Details
Message-ID: <8anh38$s163@bornews.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <38CCCF1F.41F27E72@es.sigma.se> <8alppr$r041@bornews.borland.com> <u3dpsk6ar.fsf@sds.no>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,47068b53b479f796
X-Google-Attributes: gid111d45,public
From: "Petr Kozelka" <pkozelka@email.cz>
Subject: Re: Default (Enter) button?
Date: 2000/03/15
Message-ID: <8anh38$s163@bornews.borland.com>
X-Deja-AN: 597713074
References: <38CCCF1F.41F27E72@es.sigma.se> <8alppr$r041@bornews.borland.com> <u3dpsk6ar.fsf@sds.no>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing