java - Rotating wheel in Swing -


i have searched here did not answer (though feel should here).

i want perform activity(but don't know how time take complete) , while task being run, want show rotating wheel user message "processing...please wait". once activity gets completed,rotating wheel should disappear.

how implement feature?

as seem recall, glasspane in swing can used to:

  1. intercept user input.
  2. display image/animation

someone implemented this: http://www.curious-creature.org/2005/02/15/wait-with-style-in-swing/

there download link source code @ top of page.

also at: http://docs.oracle.com/javase/tutorial/uiswing/components/rootpane.html

it explains glasspane in more detail.


Comments

Popular posts from this blog

javascript - Unusual behaviour when drawing lots of images onto a large canvas -

how can i manage url using .htaccess in php? -

javascript - Chart.js - setting tooltip z-index -