This is kind of what I'm trying to do. I'd like to do something, have a mini 1 second wait then do something else. The below example illustrates...
private void someTypeOfMouseClicked(java.awt.event.MouseEvent evt) {
handleMouseClick(j);
}
private void handleMouseClick(JLabel j) {
j.setText("hi");
Thread.sleep(1000);
j.setText("yo");
}
What happens is that it takes 1 second then "hi" and "yo" are set together. Whereas the code clearly indicates there should be a delay between the two events.