R
Rachel
Hi,
My application A (JFrame) spawns a thread B (JFrame implements runnable) in
its constructor. thread B has some checkboxes inside of it's JFrame content
pane.
public class A extends JFrame{
private tb B;
public A() {
...
B = new tb();
B.start();
}
public void run somejarfile{
....
p = r.exec(javaw somejarfile);
p.waitFor();
....
}
}
I understand that each time I execute the p.waitFor() api, my application A
will be suspended (i.e. it does not respond to my mouseclicks nor
keypresses). That's fine. But my thread B stop responding to the mouse
clicks and keypress too!! Is this supposed to be the way waitFor() works? I
mean, does waitFor suspends its parent + its sibling threads?
How do I make thread B continue to respond to my mouse events?!
Help!
-Rach
My application A (JFrame) spawns a thread B (JFrame implements runnable) in
its constructor. thread B has some checkboxes inside of it's JFrame content
pane.
public class A extends JFrame{
private tb B;
public A() {
...
B = new tb();
B.start();
}
public void run somejarfile{
....
p = r.exec(javaw somejarfile);
p.waitFor();
....
}
}
I understand that each time I execute the p.waitFor() api, my application A
will be suspended (i.e. it does not respond to my mouseclicks nor
keypresses). That's fine. But my thread B stop responding to the mouse
clicks and keypress too!! Is this supposed to be the way waitFor() works? I
mean, does waitFor suspends its parent + its sibling threads?
How do I make thread B continue to respond to my mouse events?!
Help!
-Rach