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 - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -