Article View: borland.public.jbuilder.java.api
Article #1311Re: FOCUS problem on a JDIALOG
From: Michael Köhler
Date: Tue, 26 Feb 2002 01:09
Date: Tue, 26 Feb 2002 01:09
36 lines
2244 bytes
2244 bytes
Laurent Souriau wrote:
> Hi,
>
>
> Here is the problem i have :
>
> I want to create a Window which derives from a Jdialog and then
> i want to set the focus on a component of this window called
> 'firstcomponent'.
> However there is no way to get the focus on it, and not even to get the
> focus
> on the window itself ?
>
> Do i do something wrong ?
firstcomponent.requestFocus(); ??
>
>
> Here is the code :
>
> WindowClassEditorSpecial a = new
> WindowClassEditorSpecial(currentClass,t, (String)mo.getValueAt(selR,0));
> a.show();
> System.out.println(" a traversable ? : " +
> .isFocusTraversable()); --> prints false
> a.pPrincip.requestFocus();
> System.out.println(" a a le focus ? : " +
> .pPrincip.hasFocus()); --> prints false
> a.firstcomponent.requestFocus();
>
> Thank you
> Laurent
> email : lsouriau@club-internet.fr
>
>
>
Technical Details
Message-ID:
<a5ekde$6o9ip$2@news.hansenet.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news-x2.support.nl!deine.net!fu-berlin.de!uni-berlin.de!a089250.adsl.hansenet.DE!not-for-mailReferences:
<9q3sj7$98p$1@s1.read.news.oleane.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f631b,e7d8143bdd2d0e9c X-Google-Attributes: gidf631b,public X-Google-Thread: 1089d0,e7d8143bdd2d0e9c X-Google-Attributes: gid1089d0,public X-Google-Thread: 113ae9,e7d8143bdd2d0e9c X-Google-Attributes: gid113ae9,public X-Google-Thread: f74b3,e7d8143bdd2d0e9c X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2002-02-25 16:21:05 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news-x2.support.nl!deine.net!fu-berlin.de!uni-berlin.de!a089250.adsl.hansenet.DE!not-for-mail From: Michael Köhler <w.elldoneNOSPAM@web.de> Newsgroups: borland.public.jbuilder.java.api,borland.public.jbuilder.java.language,comp.lang.java.help,fr.comp.lang.java Subject: Re: FOCUS problem on a JDIALOG Followup-To: borland.public.jbuilder.java.api Date: Tue, 26 Feb 2002 02:09:51 +0100 Lines: 37 Message-ID: <a5ekde$6o9ip$2@news.hansenet.net> References: <9q3sj7$98p$1@s1.read.news.oleane.net> NNTP-Posting-Host: a089250.adsl.hansenet.de (213.191.89.250) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: fu-berlin.de 1014682862 7087705 213.191.89.250 (HANSENET 7087705) User-Agent: KNode/0.4