I am using NetBeans IDE and I have some problem when I am trying to change jLabel visibility to true:
private void buttonActionPerformed(java.awt.event.ActionEvent evt)
{
LoaderLabel.setVisible(true);
try { sleep(1000000); } catch { ... }
}
The visibility is changed only after the long sleep...
The problem is that I want to make some very intensive calculations in this method, but at the same time present some gif. Why the jLabel visibility is changed only at the end of the function and how do I fix it?
Thanks! :)