I created a JFrame with combo boxes and a button which will create a new thread and continue to do an action. I want a new JFrame to start with every new thread to output logs to the new JFrame. But even if I put the code related to the JFrame in the new thread and close that JFrame it ends the whole program instead of that running thread. What the best approach to making what I want possible? I simply want a new JFrame to open with each new thread started and when I close that JFrame it would end that thread.
Regards!