Thread help

Thread thread =new Thread(new Runnable(){

publicvoid run(){

task();

}

});

thread.start();

hi, i have created a method namedtask() whereby when user insert the thumbdrive a powerpoint slide will play.

Using the code above however, i am unable to make the program to occur concurrently whereby each time when user insert thumdrive the powerpoint slide will play. Hope to get some help towards this threading problem. Thank you.

[723 byte] By [sarah007a] at [2007-11-27 11:38:08]
# 1

This has nothing to do with threads.

This is some sort of event triggered by the system that you will have to find out how to hook into and listen for.

cotton.ma at 2007-7-29 17:18:25 > top of Java-index,Java Essentials,Java Programming...
# 2

Uh, you're gonna have to provide a bit more information.

That code won't even compile by itself.

-Kayaman-a at 2007-7-29 17:18:25 > top of Java-index,Java Essentials,Java Programming...
# 3

> Uh, you're gonna have to provide a bit more

> information.

It's just hopeless ****.

See this http://forum.java.sun.com/thread.jspa?threadID=5172590 (the 2nd thread on this exciting topic)

cotton.ma at 2007-7-29 17:18:25 > top of Java-index,Java Essentials,Java Programming...
# 4

sarah007,

To cut right to the point.

Threading != JNI

cotton.ma at 2007-7-29 17:18:25 > top of Java-index,Java Essentials,Java Programming...