Article View: borland.public.jbuilder.java.swing
Article #705Re: Cursor won't display in components in a JWindow
From: GUI-Majician
Date: Wed, 29 Dec 2004 16:24
Date: Wed, 29 Dec 2004 16:24
27 lines
2533 bytes
2533 bytes
"GUI-Majician" <nospam@centurytel.net> wrote in message news:41d18515$1@newsgroups.borland.com... > I have some input fields, like JTextField in a JPanel on a JWindow but I > can't get the cursor to show up in the text components. These components > are not custom but regular Swing, so is the JWindow. The components do > receive focus and you can type but no cursor! > > Is there a way to force a new cursor? > Once again I have to answer my own 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. I have my own conspiracy theory about this one, and it has everything to do with Transparent Top Level Containers and JWindows. So far as I know, I am the only person on planet Earth thats figured out how to get it to work (yeah me!). Sun apparantly doesn't want you using JWindows $$$. Does MS have a patent on Transparent Frames??? There is definately something going on between Sun and MS over JWindow. So far I only see mutlimedia apps using Transparent Top Levels, but none in Java, except my apps of course. ;-) Bottom line is that JWindow is good for splash screens and thats about it.
Technical Details
Message-ID:
<41d2da48$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!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>Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,9940f1591cc93047 X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit From: "GUI-Majician" <nospam@centurytel.net> Newsgroups: borland.public.jbuilder.java.swing References: <41d18515$1@newsgroups.borland.com> Subject: Re: Cursor won't display in components in a JWindow Date: Wed, 29 Dec 2004 10:24:49 -0600 Lines: 29 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 69.29.169.50 Message-ID: <41d2da48$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1104337480 69.29.169.50 (29 Dec 2004 08:24:40 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!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