Article View: borland.public.jbuilder.java.swing
Article #9500SV: Default (Enter) button?
From: Johan Forsberg
Date: Wed, 29 Mar 2000 00:00
Date: Wed, 29 Mar 2000 00:00
15 lines
1139 bytes
1139 bytes
Tor Iver Wilhelmsen <tor.wilhelmsen@sds.no> skrev i diskussionsgruppsmeddelandet: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. Yes, but you won't get the nice default-button border. Maybe you should do both?
Technical Details
Message-ID:
<8bstb4$3pu7@bornews.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<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: "Johan Forsberg" <jfo@SPAM_SPAM_EGGS_SPAMstmf.se> Subject: SV: Default (Enter) button? Date: 2000/03/29 Message-ID: <8bstb4$3pu7@bornews.borland.com> X-Deja-AN: 603835019 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.2314.1300 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.swing