Stoic Eustov

Greenhorn
+ Follow
since Feb 13, 2002
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Stoic Eustov

Looked through the API�s and the forums and haven�t managed to find a good solution to this simple problem, what I would like is to overlay a simple logo ontop on a JMF source feed, ive managed to get it working using multiple JPanes with the logo being in front of the JMF JPane, as this solution cant be broadcasted to other clients using RTP, id like a more permanent solution that�s embedded in the video.
Have played around with effects and processor�s, but haven�t found a solution that doesn�t involve pixel replacement between the inChannel and outChannel.. Is it possible to make overlays part of a JMF movie by simply adding a new layer? although nothings that easy, any suggestions will be helpful. Thx
18 years ago
Sorry what i meant was how do you get a Java class (that is a main method), to self terminate itself, when spawned from another class...
Because using System.exit(); will kill both as thet both run on the same JVM session...
<CODE><b>
class Text Editor{
...
private boolean running;
Dictionary dictionary = new Dictionary();
private void startDictionary(){
try {
running = true;
if (running){
dicThread = new Thread (dictionary);
dicThread.start();
}
}
}catch (Exception e) {}
...
}
<b>
now i'd like to kill the created dictionary class without terminating the Text Editor class...
20 years ago
Maybe another way of putting it, how do you get any Java main method class, to self terminate itself...
20 years ago
The main() of my DictionaryViewer, just opens a GUI that displays a simple dictionary, that id like to close after a period.
20 years ago
I've actually implemented the �Dictionary Viewer� as a new runnable thread, but what id like is to close the �Dictionary Viewer� from the �Text Editor�.
Implementing a 'quit request' is easy, but once the �Dictionary Viewer� kills all its spawned threads, how does it kill it self and shut down. Thanks
20 years ago
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
20 years ago
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
20 years ago
I have a file server that accepts connections, i would like to limit the number of connections to 45 users...
The �ServerSocket (int port, int backlog)�, does not work due to OS buffers...
Anybody know how to limit the number of connections, then free the connection upon user disconnect. Thx