Article View: borland.public.jbuilder.java.swing
Article #13198How to give focus to a component on a JDialog?
From: david
Date: Mon, 31 Aug 1998 00:00
Date: Mon, 31 Aug 1998 00:00
16 lines
812 bytes
812 bytes
hi, I'm bringing up some JDialogs in my Swing GUI, but I haven't figured out how to give the default focus to one of the components on the JDialog. For example, say there's an OK button on the JDialog. I want it to have focus when the dialog comes up. Does anyone know how to do this? thanks, david -- david sims david@SimsComputing.com
Technical Details
Message-ID:
<6sfgin$9mt14@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,146ac3e38e25d8e5,start X-Google-Attributes: gid111d45,public From: "david" <nospam> Subject: How to give focus to a component on a JDialog? Date: 1998/08/31 Message-ID: <6sfgin$9mt14@forums.borland.com> X-Deja-AN: 386625384 Organization: Another Netscape Collabra Server User X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Newsgroups: borland.public.jbuilder.java.swing