Article View: borland.public.jbuilder.java.swing
Article #9777Re: Focus inside JTabbedPane
From: Jesper Berglund
Date: Wed, 26 Jan 2000 00:00
Date: Wed, 26 Jan 2000 00:00
62 lines
2266 bytes
2266 bytes
This is a multi-part message in MIME format. --------------4CD081280E2251E1604C3F11 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi Martin. I have had simular problems but i found a way around it, not a solution. when creating the form, call requestFocus on the components in (dunno how to say this but....) desending order in terms of Frame, tabbedPane and inividual component on the tabbebPane. Example: MyFrame tFrame = new MyFrame(); tFrame.setVisible(true); tFrame.requestFocus(); tFrame.TabbedFrame1.requestFocus(); tFrame.TextField1.requestFocus(); As I said, this is not a solution, just a way around the problem .. bye! Jesper Berglund Java/C++ Developer Data Ductus AB Sweden Wickus Martin wrote: > Hi there > > How do I set the focus to a textfield inside a tabbedpane when it is > displayed the first time. Requestfocus does nothing (it only does the > right thing when invoked from a event handler), and the focus remains on > the tabbed pane. > > Thanks in advance, > W. --------------4CD081280E2251E1604C3F11 Content-Type: text/x-vcard; charset=us-ascii; name="jesper.berglund.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Jesper Berglund Content-Disposition: attachment; filename="jesper.berglund.vcf" begin:vcard n:Berglund;Jesper tel;cell:+46 (0)70 - 555 7954 tel;work:+46 (0)910 - 73 23 00 x-mozilla-html:FALSE url:http://www.dataductus.se org:Data Ductus;Development adr:;;;Skellefte�;;;Sweden version:2.1 email;internet:Jesper.Berglund@dataductus.se title:Software Engineere fn:Jesper Berglund end:vcard --------------4CD081280E2251E1604C3F11--
Technical Details
Message-ID:
<388EA7D4.5291A6ED@dataductus.se>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<388834E3.C9DAED58@exinet.co.za>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,1ecae7af9f2583d0 X-Google-Attributes: gid111d45,public From: Jesper Berglund <jesper.berglund@dataductus.se> Subject: Re: Focus inside JTabbedPane Date: 2000/01/26 Message-ID: <388EA7D4.5291A6ED@dataductus.se> X-Deja-AN: 577744150 References: <388834E3.C9DAED58@exinet.co.za> X-Accept-Language: en Content-Type: multipart/mixed; boundary="------------4CD081280E2251E1604C3F11" X-Trace: 26 Jan 2000 08:53:29 +0100, ns.boliden.se MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing