Article View: borland.public.jbuilder.java.api
Article #3421Re: Initial focus in Dialog...
From: Georges YOUNES
Date: Fri, 09 Jan 1998 00:00
Date: Fri, 09 Jan 1998 00:00
104 lines
4134 bytes
4134 bytes
Message en plusieurs parties et au format MIME.
------=_NextPart_000_0042_01BD1D15.9DC08300
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi there :)
Try that=20
=20
// this Opened Window Event ...
void this_windowOpened(WindowEvent e) {
TextField.requestFocus();
}
It must work..
Good luck :)
Georges
Dhruva Reddy a =E9crit dans le message =
<34B62906.F919CCB3@cgi.com>...
I would like to bring up a dialog which immediately gives focus to a =
certain text field. I've tried requestFocus and transferFocus, but =
neither seem to work. Has anyone done this successfully?=20
Thanks,=20
Dhruva=20
--=20
-----------------------------------------------------------=20
Dhruva B. Reddy mailto:dreddy@cgi.com=20
Carnegie Group, Inc. 707 17th Street, Suite 2100=20
(303) 295 0366 x336 Denver, CO 80202, USA=20
-----------------------------------------------------------=20
=20
------=_NextPart_000_0042_01BD1D15.9DC08300
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>
<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.2106.6"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>Hi there :)</FONT></DIV>
<DIV><FONT size=3D2>Try that </FONT></DIV>
<DIV><FONT size=3D2></FONT><FONT color=3D#000000 =
size=3D2> =20
</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2> <FONT =
color=3D#000000>// this=20
Opened Window Event ...</FONT></FONT></DIV>
<DIV><FONT size=3D2> void this_windowOpened(WindowEvent e)=20
{<BR> TextField.requestFocus();</FONT></DIV>
<DIV><FONT size=3D2> }</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>It must work..</FONT></DIV>
<DIV><FONT size=3D2>Good luck :)</FONT></DIV>
<DIV><FONT size=3D2></FONT><FONT color=3D#000000 =
size=3D2> =20
Georges</FONT></DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 solid 2px; MARGIN-LEFT: 5px; PADDING-LEFT: =
5px">
<DIV>Dhruva Reddy<DREDDY@CGI.COM> a écrit dans le message =
<<A=20
=
href=3D"mailto:34B62906.F919CCB3@cgi.com">34B62906.F919CCB3@cgi.com</A>&g=
t;...</DIV><TT>I=20
would like to bring up a dialog which immediately gives focus to a =
certain=20
text field. I've tried requestFocus and transferFocus, but =
neither=20
seem to work. Has anyone done this successfully?</TT><TT></TT> =
<P><TT>Thanks,</TT> <BR><TT>Dhruva</TT><TT></TT>=20
<P><TT>--</TT>=20
=
<BR><TT>-----------------------------------------------------------</TT> =
<BR><TT>Dhruva B.=20
=
Reddy &n=
bsp; =20
<A href=3D"mailto:dreddy@cgi.com">mailto:dreddy@cgi.com</A></TT>=20
<BR><TT>Carnegie Group,=20
Inc. 707 17th =
Street,=20
Suite 2100</TT> <BR><TT>(303) 295 0366=20
x336 =
Denver, CO=20
80202, USA</TT>=20
=
<BR><TT>-----------------------------------------------------------</TT> =
<BR><TT></TT> </P></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_0042_01BD1D15.9DC08300--
Technical Details
Message-ID:
<695cjs$78l3@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<34B62906.F919CCB3@cgi.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 1089d0,1d672fab169a079b,start X-Google-Attributes: gid1089d0,public From: "Georges YOUNES" <g.younes@cross-systems.com> Subject: Re: Initial focus in Dialog... Date: 1998/01/09 Message-ID: <695cjs$78l3@forums.borland.com> X-Deja-AN: 314319458 References: <34B62906.F919CCB3@cgi.com> Content-Type: multipart/alternative; boundary="----=_NextPart_000_0042_01BD1D15.9DC08300" X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Organization: None Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.api