Hey postmortem - That didn't solve it man.
So, here is what happens:
The cursor doesn't reset and always stays busy after the button has been pressed (Action fired). I was reading around and this is a common issue, I think I need to create a new "thread" for the function that adds the dataToMySQL?Code:private void addActionPerformed(java.awt.event.ActionEvent evt) { // Setting the busy cursor topAndConsoleSplit.setCursor(new Cursor(Cursor.WAIT_CURSOR)); //Long function reads a file and adds data to mysql addToMySQL(); //Resetting back to the normal curson topAndConsoleSplit.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));




Reply With Quote