I am really sorry for the mistake...(every1)
Wont happen again..
I do know what is to be done but I am working with JAVA for the first time so finding it difficult to start off.
Got to implement Multithreading so as to include the monitoring of the Applications.
A main Thread of UI
3 threads for the 3 applications..
The 3 thread including 2 functions each:
1.First : to monitor the application and update the UI.
2.Second : to decide for the polling interval so that the thread executes again after a particular interval of time..
This is all what I have to do and I am facing problems in the same since I havent worked in JAVA before..
If you've never worked with Java before you should learn the language first and start with small, simple, things rather than immediately diving into the deep end of the pool like this.
Start with the basic tutorials from Sun, get yourself a good book like Head First Java, work through that, learn the technologies you want to "monitor" inside and out, and only after you've done all that (should take you a few years) you start thinking again about that monitoring program.
I don't see any reason why you would need "threadMain". The monitoring threads can run just as well in a single main application/controller context. You certainly don't want those threads to be statics. They should be private members of whatever class is acting as the controller context of the application.