🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #18686

Re: keyboard return

#18686
From: Oyvind L Johansen
Date: Mon, 18 May 1998 00:00
11 lines
1026 bytes
Actually I figured out the main problem was to get the focus to the ok
button. This doesen't work if you put requestFocus() in the constructor
(since the button has to be displayed before it requests focus I think). I
solved this by putting requestFocus() in the paint method. Any other ideas?

Oyvind L Johansen wrote in message <6jnq9b$k3717@forums.borland.com>...
>I have a frame with ok and cancel buttons on, and want pressing return on
>the keyboard do the same as pressing the ok button.
>
>What is the best way to accomplish this?
Technical Details
Message-ID: <6jpg4f$lpe5@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <6jnq9b$k3717@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,84750e30c7c506c5
X-Google-Attributes: gidf74b3,public
From: "Oyvind L Johansen" <johansen@tabermatics.com>
Subject: Re: keyboard return
Date: 1998/05/18
Message-ID: <6jpg4f$lpe5@forums.borland.com>
X-Deja-AN: 354310344
References: <6jnq9b$k3717@forums.borland.com>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
Organization: Tabermatics Inc
Newsgroups: borland.public.jbuilder.java.language