An infinite progress panel displays a rotating figure and a message to notice the user of a long, duration unknown task. The shape and the text are drawn upon a white veil which alpha level (or shield value) lets the underlying component shine through. This panel is meant to be used asa
glass pane in the window performing the long operation.
On the contrary to regular glass panes, you don't need to set it visible or not by yourself. Once you've started the animation all the mouse events are intercepted by this panel, preventing them from being forwared to the underlying components.
The panel can be controlled by the
start()
,
stop()
and
interrupt()
methods.
Example:
BlockGlass pane = new BlockGlass(); frame.setGlassPane(pane); pane.start()
Several properties can be configured at creation time. The message and its font can be changed at runtime. Changing the font can be done using
setFont()
and
setForeground()
.
@author Romain Guy, modified by pns
@version 1.0-pns