Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #1567 > unrolled thread

Focus problem under Linux

Started by"Knute Johnson" <knute.johnson@THRWHITE.remove-dii-this>
First post2011-04-27 15:34 +0000
Last post2011-04-27 15:34 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.lang.java.gui


Contents

  Focus problem under Linux "Knute Johnson" <knute.johnson@THRWHITE.remove-dii-this> - 2011-04-27 15:34 +0000
    Re: Focus problem under L "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:34 +0000

#1567 — Focus problem under Linux

From"Knute Johnson" <knute.johnson@THRWHITE.remove-dii-this>
Date2011-04-27 15:34 +0000
SubjectFocus problem under Linux
Message-ID<Vwd_h.349644$Pi4.90690@newsfe14.lga>
  To: comp.lang.java.gui
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,

-- 

Knute Johnson
email s/nospam/knute/

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [next] | [standalone]


#1575 — Re: Focus problem under L

From"Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this>
Date2011-04-27 15:34 +0000
SubjectRe: Focus problem under L
Message-ID<71af3860bc328@uwe>
In reply to#1567
  To: comp.lang.java.gui
Knute Johnson wrote:
>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.

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

Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-gui/200705/1

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.gui


csiph-web