Threads Exercise 2

Create a GUI application that has 4 buttons labeled: "Suspend Thread 1", "Suspend Thread 2", "Resume Thread 1", "Resume Thread 2". You are to alter the SimpleThreads class so that it now has an infinite loop rather than only a loop of 10 iterations. The application starts by creating 2 instances of this new SimpleThread class called Thread1 and Thread2. It starts both Threads running. Now the user through selecting the buttons can suspend and resume execution of the 2 threads.