*
The moose likes Applets and the fly likes About Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "About "Press Spacebar or Enter to activate this control" message.." Watch "About "Press Spacebar or Enter to activate this control" message.." New topic
Author

About "Press Spacebar or Enter to activate this control" message..

Sang-Wook Kim
Ranch Hand

Joined: Jan 07, 2004
Posts: 36
Hi,

"Press Spacebar or Enter to activate this control"

Many of you have might have seen this message when running applets

on Windows. One thing I don't understand is even if I press Spacebar

or Enter, nothing happens. The only way to activate the control is to

click inside the border of the applet.

Well, somehow I can activate the control but this message is lying in

my case.

I Suddenly got curious... Anybody have an idea?

Thanks in advance.

Hyung
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41029
    
  43
I think that's a question of where the focus is. Generally, the focus will not be on the applet when the page is loaded, so for the applet to see any keystrokes, it needs to get the focus first (which is done by clicking on it).


Ping & DNS - my free Android networking tools app
 
Don't get me started about those stupid light bulbs.
 
subject: About "Press Spacebar or Enter to activate this control" message..
 
Similar Threads
handleEvent(Event event)
Automatic Keystrokes
setFocus in JButton is there any?
Pressing ENTER when Button is selected doesnt fire buttonActionPerformed...
put an applet into a web page