🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #3421

Re: Initial focus in Dialog...

#3421
From: Georges YOUNES
Date: Fri, 09 Jan 1998 00:00
104 lines
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>&nbsp;&nbsp;&nbsp;=20
</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2>&nbsp;&nbsp;&nbsp; <FONT =
color=3D#000000>// this=20
Opened Window Event ...</FONT></FONT></DIV>
<DIV><FONT size=3D2>&nbsp; void this_windowOpened(WindowEvent e)=20
{<BR>&nbsp;&nbsp;&nbsp;&nbsp; TextField.requestFocus();</FONT></DIV>
<DIV><FONT size=3D2>&nbsp; }</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</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>&nbsp;&nbsp;&nbsp;=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 &eacute;crit dans le message =
&lt;<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.&nbsp; I've tried requestFocus and transferFocus, but =
neither=20
    seem to work.&nbsp; 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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;=20
    <A href=3D"mailto:dreddy@cgi.com">mailto:dreddy@cgi.com</A></TT>=20
    <BR><TT>Carnegie Group,=20
    Inc.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 707 17th =
Street,=20
    Suite 2100</TT> <BR><TT>(303) 295 0366=20
    x336&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
Denver, CO=20
    80202, USA</TT>=20
    =
<BR><TT>-----------------------------------------------------------</TT> =

    <BR><TT></TT>&nbsp; </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-mail
References: <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