I was just wondering if there's a way to convert the mouse icon from an arrow to an hour glass. The context in which I want to do this is when I have a GUI and I press a button and that button causes a lengthy delay, because of heavy computations, before displaying the next GUI. During this delay, I want to convert the mouse icon to an hour glass just so the user knows to be patient.
setCursor(Cursor cursor) That's the Method you are looking for it is a Component method you can look up on its use on the Java API and look up the Cursor class too to figure out which cursor the hour glass is. I believe its the WAIT_CURSOR. I don't know if you plan on handling this with Threads.
// Check with thread while(certainPart_Is_being_executed){ call_function_for_switching_cursor() }