Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why doesn an applet viewed through the browser respond to keyboard events, but the same works fine from within appletviewer?

0
Posted

Why doesn an applet viewed through the browser respond to keyboard events, but the same works fine from within appletviewer?

0

Location: http://www.jguru.com/faq/view.jsp?EID=107861 Created: Jul 21, 2000 Modified: 2000-07-21 08:47:08.308 Author: John Zukowski (http://www.jguru.com/guru/viewbio.jsp?EID=7) Question originally posed by Sriram Narasimhan (http://www.jguru.com/guru/viewbio.jsp?EID=105242 In order to respond to keyboard events your applet needs to have the input focus. In the case of appletviewer, there is nothing else on the page that might have focus. In the case of a browser, there is. Just click into the applet’s area to have it get the input focus and then it will respond to keyboard events.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123