In Java 6 below code is running as expected but in Java 8 it is taking much more time. The interesting part is that components use the same method setEnable()
for e
I haven't had a chance to understand exactly, but it seems like event handling might have changed in 8. Disabling the parent first speeds up the process:
getContentPane().setEnabled(false);
for (Component c : getContentPane().getComponents()) {
c.setEnabled(false);
}
getContentPane().setEnabled(true);