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

html - Cut text on left side inside button while centering -

java - Last square of 8x8 grid not drawn, using two nested FOR loops -

What design pattern is this code in Javascript? -