🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Pre-Selected Button

#157
From: Magnus
Date: Fri, 05 May 2006 15:42
12 lines
1349 bytes
Hi all,

I have a login window with 2 fields (Login & Password) and an OK-Button. 
The user would like to have the OK-Button pre-selected (marked with a 
border or something) and when Enter is pressed the button will be "pressed".

I could add a listener on each text-field but is that the way to go 
here? How do I get the border or other marking of the pre-selected button?

Any and all help is much appreciated,

Magnus
Technical Details
Message-ID: <445b7269$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.usenet.com!sp6iad.superfeed.net!in1.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,30e91bf2bfc69eae,start
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
Subject: Pre-Selected Button
From: Magnus <magnus_bjorkman@yahoo.com>
Date: Fri, 05 May 2006 11:42:55 -0400
Message-ID: <445b7269$1@newsgroups.borland.com>
Lines: 12
NNTP-Posting-Host: 69.69.78.174
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.usenet.com!sp6iad.superfeed.net!in1.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
Newsgroups: borland.public.jbuilder.java.swing
X-Trace: newsgroups.borland.com 1146843753 69.69.78.174 (5 May 2006 08:42:33 -0700)
User-Agent: Thunderbird 1.5.0.2 (Windows/20060308)
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit