Hi, this problems been driving me nuts�
How to terminate a sub �main method� class, that was initiated by another, in this case Master �main method� class�
Best explained via example�
--------------------------------------
Say I have two pre-made
Java programs that I felt could work nicely together...
1) A simple �Text Editor�
2) A �Dictionary Viewer�
Both written completely separately with their own main methods (you can start either independently), so the �Dictionary Viewer� class is a kind of module program, that can be started from the �Text Editor�, which is simply done via�
Dictionary foobar = new Dictionary();
Now say after one minute, I wont to automatically close down (terminate) the �Dictionary Viewer�, setting up a timer is easy, but what boggles me is how to kill the main method class �Dictionary ( )� which I initialized in my �Text Editor� ?
Note: I know of many solutions that require merging the two codes (or similar), but I need them to be as they are both main methods that can be run independently, but with one being able to initialize the other then shut it down.
Thanks,
eung e'ustov