ActionListener listen = new ActionListener() {
public void actionPerformed(ActionEvent e) {
for (int i = 0; i < fi.bo.length; i++) {
if (fi.bo[i] == fi.obe.length) {
fi.shi = fi.shi + 1;
}
}
}
};
In the same order as they are enqueued.
That is, if AWTEvent A is enqueued to the EventQueue before AWTEvent B then event B will not be dispatched before event A.
try {
EventQueue.invokeAndWait(new Runnable() {
@Override
public void run() {
new TApplication();
System.out.println("invokeAndWait");
}
});
} catch (InterruptedException e) {
e.printStackTrace();
} catch (Exception e) {
Throwable cause = e.getCause();
if (cause instanceof RuntimeException) {
throw (RuntimeException) cause;
} else {
cause.printStackTrace();
}
}