🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

FOCUS problem on a JDIALOG

#1706
From: Laurent Souriau
Date: Thu, 11 Oct 2001 10:36
30 lines
2192 bytes
        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 ?


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: <9q3sj7$98p$1@s1.read.news.oleane.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!oleane.net!oleane!nnrp.oleane.net!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f631b,e7d8143bdd2d0e9c,start
X-Google-Attributes: gidf631b,public
X-Google-Thread: 1089d0,e7d8143bdd2d0e9c,start
X-Google-Attributes: gid1089d0,public
X-Google-Thread: 113ae9,e7d8143bdd2d0e9c,start
X-Google-Attributes: gid113ae9,public
X-Google-Thread: f74b3,e7d8143bdd2d0e9c,start
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-10-11 03:35:03 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!oleane.net!oleane!nnrp.oleane.net!not-for-mail
From: "Laurent Souriau" <lsouriau@club-internet.fr>
Newsgroups: borland.public.jbuilder.java.api,borland.public.jbuilder.java.language,comp.lang.java.help,fr.comp.lang.java
Subject: FOCUS problem on a JDIALOG
Date: Thu, 11 Oct 2001 12:36:11 +0200
Organization: Guest of France Telecom Oleane's newsreading service
Lines: 32
Message-ID: <9q3sj7$98p$1@s1.read.news.oleane.net>
NNTP-Posting-Host: aqsacom.rain.fr
X-Trace: s1.read.news.oleane.net 1002796455 9497 195.6.24.78 (11 Oct 2001 10:34:15 GMT)
X-Complaints-To: abuse@oleane.net
NNTP-Posting-Date: Thu, 11 Oct 2001 10:34:15 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400