Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Applets, IE, Frames and Kiosk mode

843807Feb 19 2007
I have an application done with Java 1.4.2 with Struts, jsps, with three windows with frames. I have that frameset running in kiosk mode.

The IE browser freezes and you need to move the mouse to get the application to continue. As if the the applet pause pauses the main thread.

Any ideas about other options to get a pause on a jsp page or how to get around this thread pause problem. Is it tied to Kiosk mode?

I have an applet I call to do a pause , which pauses a thread for 10 milliseconds.

import java.awt.*;
import java.applet.*;
import java.awt.event.*;
    /**
    * Simply calls <code>Thread.sleep( (long) timeInMillis )</code>.
    * <p>
    * This method is needed because Javascript has no sleep
    * functionality. Also, the argument must be a float
    * because that is what Javascript's Number type is
    * automaticly converted to when it calls this method.
    * <p>
    */
    public class SleepApp extends java.applet.Applet  
{public void init()
{
   //System.out.println("----SleepApp Awake---");
}
    public void sleep(float timeInMillis) throws InterruptedException {
        Thread.sleep( (long) timeInMillis );
    }
    public void start() {
        //ystem.out.println("----SleepApp start---");
    }

    public void stop() {
       //System.out.println("----SleepApp stop---");
    }

} //---end class SleepApp
Which is set up as an applet in a zero size frame the applet tag
<html>
<body>
<applet  code="SleepApp.class" width="0" height="0"></applet>
</body>
</html>
]/code]

  Thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 19 2007
Added on Feb 19 2007
0 comments
114 views