Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / May 2007

Tip: Looking for answers? Try searching our database.

Focus problem under Linux?

Thread view: 
Knute Johnson - 03 May 2007 05:27 GMT
I've got a JApplet that is having a focus problem.  The URL is
http://www.knutejohnson.com/chat.html.  After you hit the 'Connect'
button and enter a handle the focus should transfer to the outgoing
message JTextField.  This works fine under Winblows but under Fedora 7
and Mozilla or Ubuntu and Mozilla focus cannot be given to the
JTextField.  If you minimize/maximize the window though it works fine.
The source code is available on the page.  I've tried to make an SSCCE
to duplicate the problem but I can't get it to fail.  Any ideas would be
greatly appreciated.

Thanks,

Signature

Knute Johnson
email s/nospam/knute/

Andrew Thompson - 04 May 2007 19:23 GMT
>I've got a JApplet that is having a focus problem.  

Applets, browser VM's, focus (shudder).

You have your work cut out, getting focus to work
in a consistent and sensible way in an x-plat,
x-browser manner.
..
>..This works fine under Winblows but under Fedora 7
>and Mozilla or Ubuntu and Mozilla focus cannot be given to the
>JTextField.  If you minimize/maximize the window though it works fine.
>The source code is available on the page.  I've tried to make an SSCCE
>to duplicate the problem but I can't get it to fail.

I only have Windows to test on, and while I failed
to see the problem in Mozilla and IE, I failed to see
the *applet* (at all) in Opera - it said 'Loading applet..'
and did not report errors, but the applet never appeared.

>.. Any ideas would be greatly appreciated.

Launch the applet using web start, to get a more
reliable and predictable focus environment.

Signature

Andrew Thompson
http://www.athompson.info/andrew/



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.