Pressing Tab key in IE with latest JRE version

Hi,
I have question about typing "TAB" key in Java Applet in internet explorer with JRE 1.05_08 or above.
When I type any key other than "TAB", the function, processEvent, will be called 3 times to process the events: keyPressed, keyTyped and keyReleased. However, when I type "TAB" key, processEvent is only called once to process the event: keyTyped and the focus goes outside the applet.
Is there any way that the focus won't get lost when typing the "TAB" key?
Note that this problem only happens in IE browser with JRE 1.05_08 or above. It works well in Firefox and netscape with any JRE version and works well in IE with JRE 1.05_06 and below.
The following is my code:
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
public class KeyEventDemo extends Applet implements KeyListener, FocusListener {
     public KeyEventDemo() {
          super();
          addKeyListener(this);
          addFocusListener(this);
     public void keyTyped(KeyEvent e) {
          System.out.println("KEY TYPED: e="+e);
     public void keyPressed(KeyEvent e) {
          System.out.println("KEY PRESSED: e="+e);
     public void keyReleased(KeyEvent e) {
          System.out.println("KEY RELEASED: e="+e);
     public boolean keyDown(Event e, int key) {
          System.out.println("keyDown: e="+e);
          return false;
     public boolean keyUp(Event e, int key) {
          System.out.println("keyUp: e="+e);
          return false;
     public void processEvent(AWTEvent e) {
          System.out.println("processEvent : e="+e);
     public void focusGained(FocusEvent e){System.out.println("FocusGained");}
     public void focusLost(FocusEvent e){System.out.println("FocusLost");}
     public void paint ( Graphics g ){
          this.setBackground ( Color.blue );
     public boolean isFocusTraversable() {
          return true;
     public boolean getFocusTraversalKeysEnabled() {
          return false;
Thanks very much!

I apologize - the cross posting snookered me; the solution is provided on:
http://forum.java.sun.com/thread.jspa?threadID=780250&messageID=4438725#4438725

Similar Messages

  • How to show list of items when the user pressed tab key in an empty field

    Hi all
    i would like to know if there is a way to open a form with items list which will be shown to the user when he pressed the tab key within a field for instance "item code" field will present a search form with a table filled with item codes and their description.
    i'm currently working in 2004 version. i know how to catch the event.
    i'm creating a form with a matrix object binded to a datasource which is connected to the data base table which contains all the items.
    what would like to know if there is a better way to this. maybe using buisness partner objects. and if so how
    appriciate the help
    Yoav

    You Should use Formatted Search in this case.
    You must create and associate a query for your field.
    click on the field you want items to be listed and press Shift + F2
    catch the keydown event of this field  and check pval.charpressed = 9 (tab key press)
    then execute
    SBO_Application.SendKeys("+")

  • Pressing tab key within table not scrolling to next input field

    Hi All,
    I have a table with editable and read only fields. I have more than 20 columns. When the tab Key is pressed it scrolls only to the editable fields that are in the visible screen. It does not scroll the table to the right to the next input field.
    However if I change the screen size so that the scroll bar is required for the browser then it will scroll across moving the browser scroll bar, moving the cursor to the input field that was not visible. Again it does not go further moving the scroll bar within the table to the next editable field to the right.
    The table has been set to scrollable with the scrollable column count set to 8.
    We are using explorer 8 on 7.01
    Is it possible to have the tab key move from input field to input field scrolling the table to the next input field if it is not visible yet?
    Thanks
    Bruce

    What you describe sounds like the correct functionality.  If you set a scrollable column count, only the visble rows are actually rendered on the client side.  When you use the horizontal scroll bar, you are triggering a server side event to retrive the next set of visible columns.  Therefore the browser doesn't actually know anything about non-visible columns and hence the tab can't go to them.
    When you increase the number of visible columns (or don't set anything for visible column) you render al the columns on the client side and use the browser scrolling.  Therefore the tab works.

  • Having problme in JTable, when I press TAB key from KeyBoard

    Hi All,
    I believe I could get the solution here,
    We have desinged small Swings application, which is contains a JTable to get some order values from the end users.
    After we enter the values in the first column, when we press tab it's not moving to next column. and also the pointer again goes back to first column.
    This problem we are facing in only 2 PC's out of 15.
    If something problem with the code, I should affect in all the PC, Since it's affected in only 2 PC's It's makes puzzle on the issue.
    I greatly appreciate if someone advice the solution.
    Thanks in advance.
    With Cheers,
    Prasanna T

    Sounds that Windows thinks that the Alt key is (still) pressed.
    Does it help if you press all status keys (Shift, Ctrl, Alt) a few times?
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode

  • Initiate key pressing tab key

    it there a code for initiate key pressing...once i start
    the flash application pressing the "tab" key code should
    automatically be initiated.
    i don't want to do something while pressing the tab button.
    the tab button just has to be "pushed" automatically since
    this step is necessary in order to start an external application.
    otherwise the user has to push it.
    it is more "comfortable" when pushing the tab button is done
    automatically by flash, and the user only has to push the enter
    button to start the application.
    thanks for help....

    we have an application that will be started from a flash
    projector.
    the menue will be controlled not by mouse but by a remote
    control.
    you start the application when you press a certain key at the
    remote control that is "linked" with the enter key on the keyboard.
    now it is two steps: press the tab key to select the start
    button, and then press the enter key (both by remote control) to
    start the application.
    the first step is unnecessary when this could be done
    automatically by flash. then the user only has to press the enter
    key because the start button is already "selected".
    i can't explain it better... ;-(

  • Java.lang.NullPointerException in sun code with latest JRE (1.6.0_02)

    We upgraded to the latest JRE and when we go to our website which has an unsigned applet and I answer Yes to trust it, the applet never runs.
    I turned on debugging in the java console and see this after the certificate negotiation stuff is sent bck and forth:
    security: Certificate has failed the verification with the SSL Root CA certificates
    security: Invalid certificate from HTTPS server
    java.lang.NullPointerException
         at com.sun.deploy.ui.UIFactory.showSecurityDialog(Unknown Source)
         at com.sun.deploy.security.TrustDeciderDialog.showDialog(Unknown Source)
         at com.sun.deploy.security.X509ExtendedDeployTrustManager.checkServerTrusted(Unknown Source)
         at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(Unknown Source)
         at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(Unknown Source)
         at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown Source)
         at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
         at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
         at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
         at sun.plugin.PluginURLJarFileCallBack$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin.PluginURLJarFileCallBack.retrieve(Unknown Source)
         at sun.net.www.protocol.jar.URLJarFile.retrieve(Unknown Source)
         at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source)
         at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source)
         at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source)
         at sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(Unknown Source)
         at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFileInternal(Unknown Source)
         at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)
         at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)
         at sun.misc.URLClassPath$JarLoader.access$600(Unknown Source)
         at sun.misc.URLClassPath$JarLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.misc.URLClassPath$JarLoader.ensureOpen(Unknown Source)
         at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)
         at sun.misc.URLClassPath$3.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.misc.URLClassPath.getLoader(Unknown Source)
         at sun.misc.URLClassPath.getLoader(Unknown Source)
         at sun.misc.URLClassPath.getResource(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    security: Adding certificate in Deployment denied certificate store
    security: Added certificate in Deployment denied certificate store
    For another person at same IE level and JRE level it works fine and debug for that shows:
    security: Certificate has failed the verification with the Internet Explorer ROOT certificates
    security: Invalid certificate from HTTPS server
    security: Adding certificate in Deployment session certificate store
    security: Added certificate in Deployment session certificate store
    security: Saving certificates in Deployment session certificate store
    security: Saved certificates in Deployment session certificate store
    Is there something wrong with the "Deployment session certificate store" in the first instance? Treid un/reinstalling the JRE but it didn;t fix things.

    Regenerate what certificate? The applet is unsigned.
    Plus other people with the same IE level and same JRE level do not have this problem, which leads me to think it is something specific to this user, like maybe the deployment session certificate store. Is that a file someplace we can like delete to start clean?
    Edited by: Jim_does_java on Oct 1, 2007 4:56 AM

  • JFilchooser error on Webstart application with latest JRE download

    Recently we have observed that with the latest versions of JRE downloads the JFilechooser does not pop up and on some machines and on some machines it throws out a 3184 error message on windows vista machines.
    We are seeing this error occuring only on Vista .Everything works fine on XP though.
    We have a java web start application which runs on the client machine and it has functionalities where it opens the jfilechooser.
    Unfortunately with the latest update of JRE this is giving very big problems for us and im not sure how to fix this problem.
    Can someone help us with this problem and provide a solution.
    My class definition looks like this
    FileAndDirectorySelection extends JPanel implements ActionListener {
    JFileChooser fc;
         fc = new JFileChooser(".");
                   fc.setCurrentDirectory(exportDefaultDirectory);
    Not sure how to fix this problem but any help would be greatly appreciated.
    Thanks
    Chetan

    BIBeans version 10.1.2.0.1 is certified only with Sun JRE:
    1.3.1_11
    1.4.1_04
    1.4.2_03

  • Attempting to install Windows 7 from USB drive keep receiving "No Bootable device -- insert boot disk and press any key" usb drive with windows 7 iso is inserted

    As the topic says, i am trying to install windows from a usb drive, when i click install windows and the computer reboots to install a black screen comes up with "no bootable device -- insert boot disk and press any key" the USB drive is inserted and pressing any key does nothing. Help?

    You need to follow these guides to install from USB drive
    http://www.intowindows.com/how-to-install-windows-7vista-from-usb-drive-detailed -100-working-guide/
    good luck

  • Itunes launches when I press Tab Key

    Anyone got any ideas on this one? Whenever I use the Tab key in MS Word it launches iTunes. If I’m trying to create tables or list items in Word it becomes a nightmare and takes forever.
    Even if I’m online filling in a form and press Tab to enter the next box, it launches iTunes

    Wow, I just deleted my playlist that I had and that fixed the problem..

  • Error in  bibean applet with latest  JRE

    We have bi bean application developed using Applet It works fine with
    JRE 1.5 or earlier JRE version but when I access same thing in PC that has JRE 1.5.0_09 it gives XML error
    <Line 5, Column 21>: XML-20123: (Fatal Error) '>' Missing from end tag.
    <Line 5, Column 21>: XML-20100: (Fatal Error) Expected 'EOF'.
    java.lang.NullPointerException
         at oracle.dss.persistence.persistencemanager.server.PersistenceManagerSupport.loadFactoryFromXML(PersistenceManagerSupport.java:359)
         at oracle.dss.persistence.persistencemanager.server.PersistenceManagerSupport.<init>(PersistenceManagerSupport.java:157)
         at oracle.dss.persistence.persistencemanager.server.PersistenceManagerImpl.<init>(PersistenceManagerImpl.java:88)
         at oracle.dss.persistence.persistencemanager.server.InitPersistenceManagerFactory.getInitialContext(InitPersistenceManagerFactory.java:36)
         at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
         at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
         at javax.naming.InitialContext.init(Unknown Source)
         at javax.naming.InitialContext.<init>(Unknown Source)
         at javax.naming.directory.InitialDirContext.<init>(Unknown Source)
         at oracle.dss.persistence.persistencemanager.server.InitialPersistenceManager.<init>(InitialPersistenceManager.java:105)
         at oracle.dss.connection.server.drivers.persistence.PersistenceConnectionDriverImpl.connect(PersistenceConnectionDriverImpl.java:150)
         at oracle.dss.connection.server.ConnectionImpl.connect(ConnectionImpl.java:285)
         at oracle.dss.connection.client.Connection.connect(Connection.java:425)
         at oracle.dss.connection.client.Connection.connect(Connection.java:342)
         at oracle.dss.metadataManager.client.MetadataManager.setConnectionObjects(MetadataManager.java:4235)
         at oracle.dss.metadataManager.client.MetadataManager.attach(MetadataManager.java:924)
         at oracle.dss.metadataManager.client.MetadataManager.attach(MetadataManager.java:840)
         at oracle.dss.datautil.client.XMLManagerFactory.createQueryManager(XMLManagerFactory.java:196)
         at oracle.dss.datautil.client.ManagerFactoryImpl.lookupQueryManager(ManagerFactoryImpl.java:178)
         at oracle.dss.datautil.client.ManagerFactoryImpl.lookupMetadataManager(ManagerFactoryImpl.java:221)
         at oracle.dss.datautil.client.ManagerFactoryImpl.lookupManager(ManagerFactoryImpl.java:128)
         at edsl.olap.BIView.getMetadataManager(BIView.java:436)
         at edsl.olap.BIView.openView(BIView.java:565)
         at edsl.olap.BIView.jbInit(BIView.java:123)
         at edsl.olap.BIView.init(BIView.java:112)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

    BIBeans version 10.1.2.0.1 is certified only with Sun JRE:
    1.3.1_11
    1.4.1_04
    1.4.2_03

  • Using tag OBJECT on a machine with multiple jre versions

    Dear friends,
    i guess that this question has been already answered, but i can't find the thread with all infos i need.
    So please excuse me if i'm redundant.
    This is my problem:
    i have a web application that runs an applet, embedded in an html page;
    by now the applet is loaded with the standard tag <APPLET>.
    I found many Sun's official pages talking about the use of OBJECT tag to specify the jre version that is supposed to run the applet.
    I tried many ways but i can't reach the way to avoid loading the applet with the latest jre installed on my pc.
    Here is the code of my OBJECT:
    <OBJECT NAME="client" CLASSID="clsid:CAFEEFAC-0014-0002-0009-ABCDEFFEDCBB" HEIGHT="38" WIDTH="335" >
                          <PARAM NAME="NAME" VALUE="client">
                          <PARAM name="type" value="application/x-java-applet;jpi-version=1.4.2_09">
                             <PARAM NAME="CODE" VALUE="it.fabio.client">
                             <PARAM NAME="CODEBASE" VALUE="/myapp">
                             <PARAM NAME="ARCHIVE" VALUE="mylib.jar">          
                   </OBJECT>The machines where the application is deployed have the 1.4.2_09 and the 1.5.0_03 jre versions, but my applet runs only on 1.4.2_09 version.
    So i have to find a way to tell the browser which jre has to be called.
    Thanks in advance for help.
    Regards

    Wait a second...there is more to that error message that I overlooked before.
    There might be something other than just the way I set the CODE and CODEBASE parameters wrong here
    Any ideas?
    Here is the entire messsage:
    load: class DisplayMonoApplet.class not found.
    java.lang.ClassNotFoundException: DisplayMonoApplet.class
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more

  • Latest JRE version that will run on Solaris 2.5.1?

    Could anyone tell me the latest possible version of the JRE that will run on Solaris 2.5.1? I know that 1.3 will run on Solaris 2.6, but I can't seem to find a definitive answer regarding Solaris 2.5.1. Thanks!

    OK, for anyone else dealing with this type of issue, the fix is simple:  Install the Creative Cloud desktop app if you haven't.  Click on Apps, filter apps by "previous version" and boom, legacy apps.  Easy.

  • Pixellated photos with latest 2 versions (continued)

    <blockquote>Locked by Moderator as a duplicate/re-post.
    Please continue the discussion in this thread: [/forum/1/741046]
    Thanks - c</blockquote>
    == Issue
    ==
    I have another kind of problem with Firefox
    == Description
    ==
    The pixellated photos with the latest 2 versions is not just with Facebook page photos, it is present on all photos displayed by Firefox.
    == Firefox version
    ==
    3.6.8
    == Operating system
    ==
    Windows XP
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 (.NET CLR 3.5.30729)
    == Plugins installed
    ==
    *-Garmin Communicator Plug-In 2.9.1.0
    *getplusplusadobe16287
    *Java(TM) Platform SE binary
    *Default Plug-in
    *Shockwave Flash 10.1 r53
    *Java Plug-in 1.6.0_13 for Netscape Navigator (DLL Helper)
    *Npdsplay dll
    *DRM Store Netscape Plugin
    *DRM Netscape Network Object

    I would go for a complete uninstall, remove preferences.  Be sure you have administrative privileges.
    Run the CC Cleaner Tool Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    Verify your disk and Repair Permissions using Disk Utility.
    Download the CS5 installer here: Download CS5 products
    Install with your serial number and activate.
    Instead of going to Help > Updates, manually download and install your updates.
    Adobe - Photoshop : For Macintosh : Adobe Photoshop 12.0.4 update for Adobe Photoshop CS5
    Adobe - Photoshop : For Macintosh : Camera Raw 6.7 Update
    Adobe - Bridge : For Macintosh : Adobe Bridge CS5 4.0.5 Update
    Hopefully all goes well.
    Gene

  • Pixellated photos with latest 2 versions

    == Issue
    ==
    I have another kind of problem with Firefox
    == Description
    ==
    The latest 2 versions of Firefox (3.6.8 and 1 previous) produces heavily pixellated Facebook page photos. I have used ATN Accellerator for years. This is the first time I've experienced this issue.
    [/forum/1/741052 Quote]: ''The pixellated photos with the latest 2 versions is not just with Facebook page photos, it is present on all photos displayed by Firefox.'' (c)
    == Troubleshooting information
    ==
    I have not installed any other new software.
    == Firefox version
    ==
    3.6.8
    == Operating system
    ==
    Windows XP
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 (.NET CLR 3.5.30729)
    == Plugins installed
    ==
    *-Garmin Communicator Plug-In 2.9.1.0
    *getplusplusadobe16287
    *Java(TM) Platform SE binary
    *Default Plug-in
    *Shockwave Flash 10.1 r53
    *Java Plug-in 1.6.0_13 for Netscape Navigator (DLL Helper)
    *Npdsplay dll
    *DRM Store Netscape Plugin
    *DRM Netscape Network Object

    I would go for a complete uninstall, remove preferences.  Be sure you have administrative privileges.
    Run the CC Cleaner Tool Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    Verify your disk and Repair Permissions using Disk Utility.
    Download the CS5 installer here: Download CS5 products
    Install with your serial number and activate.
    Instead of going to Help > Updates, manually download and install your updates.
    Adobe - Photoshop : For Macintosh : Adobe Photoshop 12.0.4 update for Adobe Photoshop CS5
    Adobe - Photoshop : For Macintosh : Camera Raw 6.7 Update
    Adobe - Bridge : For Macintosh : Adobe Bridge CS5 4.0.5 Update
    Hopefully all goes well.
    Gene

  • Pressing delete key deletes items with out prompting if "sure?" Gnome

    In my Gnome Nautilus, as a normal user, if i want to delete something by pressing delete, it is simply deleted as soon as I press delete without a prompt to ask me if i'm sure i want to delete it or recycle it.
    Any idea why? How can i turn this feature on? It works if i log into gnome as root user, in which case it always prompts me when deleting files.

    I think the default is to never ask for confirmation when you move something into trash, after all it is not deleted yet. You can toggle the prompt for shift+delete/empty the trash in nautilus preferences.

Maybe you are looking for