🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Default (Enter) button?

#9542
From: Nils-Erik Thorell
Date: Mon, 13 Mar 2000 00:00
11 lines
871 bytes
In a DialogBox or a Frame with textfields and an Ok button,
I want to be able to hit 'Enter' at any point in time to terminate
the input.
In other words, the Ok-button should be sensitive to 'Enter',
(and the Cancel button should be mapped to the 'Esc'-key)

all other keys should go to the textfields.

How do I program that in Java?

Nils Thorell
Technical Details
Message-ID: <38CCCF1F.41F27E72@es.sigma.se>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,47068b53b479f796,start
X-Google-Attributes: gid111d45,public
From: Nils-Erik Thorell <net@es.sigma.se>
Subject: Default (Enter) button?
Date: 2000/03/13
Message-ID: <38CCCF1F.41F27E72@es.sigma.se>
X-Deja-AN: 596803734
Content-Transfer-Encoding: 7bit
Organization: Another Netscape Collabra Server User
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing