This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Applets and the fly likes Tab doesn't work in applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Tab doesn Watch "Tab doesn New topic
Author

Tab doesn't work in applet

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

I have a Applet that has a form with several text fields. I am using JDK 1.4.1 and primarily Windows Machines with IE 5.5/6. And the tab key doesn't seem to work. I hit tab and it does not traverse anywhere. As an application, the tab key works just fine. Is this a bug, a limitation, or what?
Thanks.


GenRocket - Experts at Building Test Data
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1871
hi Gregg,
you can make sure if tab is working or not by implementing KeyListener and detect the tab key code and popup some message or something...
if you are able to pop up the message then it will mean your applet is able to detect the tab key. if not then its a problem with the applet (may be due to the JDK1.4 api you are using)...
i have worked with applet with JDK1.1 (way back, huh?) and there this tab thing worked for me.
please let me know whatever you are able to find..
regards
maulin
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Well, I do notice this.
When I hover my mouse over the JTextArea, my pointer does not turn into the cursor. It stays as an Arrow.
I have noticed in the passed that when this happens I lose TAB capabilites. But usually I starts off ok. But on this applet it doesn't.
Does anyone have any insight?
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

I have attempted to catch the VK_TAB event in my code. Appearntly, the tab key is not even getting registered when I type it.
Does anyone know anything about my problem?
Thanks.
 
 
subject: Tab doesn't work in applet
 
Similar Threads
TAB KeyStroke
catching keyboard events
JTabbedPane - traversing focus through tabs
Tab Key in JApplet and JtextField
KeyListener failing for Macs