Hi
Is the AbstractButton.doClick need to be on dispatching thread ?
If I look at the jdk 6 source I read :
public void doClick(int pressTime) {
Dimension size = getSize();
model.setArmed(true);
model.setPressed(true);
paintImmediately(new Rectangle(0,0, size.width, size.height));
try {
Thread.currentThread().sleep(pressTime);
} catch(InterruptedException ie) {
}
model.setPressed(false);
model.setArmed(false);
}
I suppose it's bad to exec the sleep method on the edt, so I suppose the doClic method must not be in edt, but I don't find any documentation on this point ?
Thanks.