Help Needed!?#?!@!!!!!- java.lang.IllegalThreadStateException !!!!!!!
I'm building an mp3 player and a bit new to threading concepts. I have created a JDialog box which contains a FileChooser, which is supposed to pop up as soon as i click the Open button in my ui. I have initialized the object of the JDialog in the Oen Button's ActionListener method.
On compliling and running the ui comes up but on clicking the open button it doesn't respond.
here's the exception dat comes up
java.lang.IllegalThreadStateException
at java.lang.ThreadGroup.add(ThreadGroup.java:856)
at java.lang.Thread.start(Thread.java:573)
at org.apache.tools.ant.taskdefs.ProcessDestroyer.removeShutdownHook(ProcessDestroyer.java:145)
at org.apache.tools.ant.taskdefs.ProcessDestroyer.remove(ProcessDestroyer.java:198)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:490)
at org.apache.tools.ant.taskdefs.Java.fork(Java.java:751)
at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:171)
at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:378)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:234)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:287)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:125)
I REALLY NEED HELP FAST for this as this project is due.
What are the situations under which this can occur and wht can i do to set this rght
If u want to see more of my code for problems i'll be pleased to post it here
BUT HELP I'M DESPERATE RGHT NOW!!!!!!!!!!!!!

