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!

Difference between refresh and restart

843807May 19 2006
Hello everyone

This is probably a stupid question but can someone explain to me the difference between refresh and reload and which one is used when you hit F5 in a browser windows.

Here is actually what is it all about:
I am converting a Java Multythreading (more then 15 threads are active almost all the time) Application into an applet. After running into a lot of difficulties (RandomAccessFile, Security Exceptions...) I finally managed to make the applet run properly. But when I hit F5 it all get messed up. So I saw that I need to manually force all threads to quit before I start the applet again. So I did that, the applet start after it makes sure that all threads from the former lunch are dead. And it work just fine. But it only works when I use restart (stop - start). When I hit F5 two things are possible: A browser crash (FireFox don't know about IE) or

Thread [Thread-13] (Suspended (exception ThreadDeath))

and the debugger shows the thread executing a Thread.sleep(25)

Can someone please give some advise.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 16 2006
Added on May 19 2006
0 comments
660 views