Article View: borland.public.jbuilder.java.swing
Article #7757Re: focusLost & JTextField
From: John McGrath TeamB
Date: Thu, 14 Dec 2000 09:46
Date: Thu, 14 Dec 2000 09:46
20 lines
1502 bytes
1502 bytes
On 13 Dec 2000 13:56:55 -0800, Tulan wrote:
> I'm using JBuilder 3. I have 'showMessageDialog' in the
> focusLost event for an error condition. However, it always
> pops up twice for me. Is this a bug?
I presume that you see the dialog twice because your component is
losing focus twice. It may be that the display of the dialog box is
affecting the focus transfer. Try using a System.out.println( "..." )
instead. That way you will know whether the dialog is causing the
extra focusLost().
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<MPG.14a24bebe19abe01989dbd@forums.borland.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news-x.support.nl!newsfeeds.belnet.be!news.belnet.be!news.tele.dk!194.213.69.151!news.algonet.se!algonet!neel.uni2.net!newssuck.uni2.dk!bornews.borland.com!not-for-mailReferences:
<3a37f0a7_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,d6ed4023ba0d7fb6 X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2000-12-14 01:51:51 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news-x.support.nl!newsfeeds.belnet.be!news.belnet.be!news.tele.dk!194.213.69.151!news.algonet.se!algonet!neel.uni2.net!newssuck.uni2.dk!bornews.borland.com!not-for-mail From: John McGrath [TeamB] <ng-b@JPMcGrath.net> Newsgroups: borland.public.jbuilder.java.swing Subject: Re: focusLost & JTextField Date: Thu, 14 Dec 2000 04:46:45 -0500 Organization: Another Netscape Collabra Server User Lines: 20 Message-ID: <MPG.14a24bebe19abe01989dbd@forums.borland.com> References: <3a37f0a7_2@dnews> NNTP-Posting-Host: dslcv1-60.fast.net X-Newsreader: MicroPlanet Gravity v2.30