Article View: borland.public.jbuilder.java.swing
Article #706Re: Cursor won't display in components in a JWindow
From: Lori M Olson [TeamB]
Date: Wed, 29 Dec 2004 18:09
Date: Wed, 29 Dec 2004 18:09
37 lines
2549 bytes
2549 bytes
GUI-Majician wrote:
> Once again I have to answer my own questions. :-(
>
If you posted some code or some details, it would be easier to answer
your questions.
> The problem is in the FocusManager. It does not allow focus to travel from
> one JWindow to another, or to the components that is. You get focusGained()
> but not focusLost(), windowActivated(), windowDeactivated() events. This is
> part of it anyway. You can get the cursor (caret) to show up sometimes but
> you cannot tab between fields. JWindow does not work well with focus and
> text input JComponents. Java 1.5 has not solved the problem either.
FocusManagers are largely deprecated as of JDK 1.4. You want
FocusTraversalPolicy. And you can always write your own focus traversal
policy if the default one is not doing what you want.
--
Regards,
Lori Olson [TeamB]
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
Technical Details
Message-ID:
<41d2f2d0$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!diablo.theplanet.net!zen.net.uk!demorgan.zen.co.uk!news2.euro.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<41d18515$1@newsgroups.borland.com> <41d2da48$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,9940f1591cc93047 X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Wed, 29 Dec 2004 11:09:22 -0700 From: "Lori M Olson [TeamB]" <javadragon@techie.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax; CDonDemand-Dom) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing Subject: Re: Cursor won't display in components in a JWindow References: <41d18515$1@newsgroups.borland.com> <41d2da48$1@newsgroups.borland.com> In-Reply-To: <41d2da48$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 142.179.181.200 Message-ID: <41d2f2d0$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1104343760 142.179.181.200 (29 Dec 2004 10:09:20 -0800) Lines: 38 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!diablo.theplanet.net!zen.net.uk!demorgan.zen.co.uk!news2.euro.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail