title: java - My application is still running in task manager even my java program is closed or stop in application in netbeans
body: <p>Whenever I use my webcam application within the main form, the program does not closed and still appearing in the task manager or in the bottom right of the Netbeans saying that it is still running even if I clicked <strong>STOP</strong> or close my form. It only occurs when I access my Webcam snapshot application from my main form button.</p>
  
  <p>I've read so many answers but it doesn't give me the solution.</p>
  
  <p>My guess in my problem is the following:</p>
  
  <ol>
  <li>It is still running because it will not terminate unless all non-daemon threads (my webcam thread?) are closed.</li>
  <li>OpenCV libraries' fault?</li>
  </ol>
  
  <p>Please refer to my first stackoverflow question link : <a href="https://stackoverflow.com/questions/23507638/java-opencv-videocapture-read-exception-in-thread-java-lang-exception-unkn">MY PROBLEM</a>.java</p>
  
  <p>Thank you,</p>