public class WaitIndicator extends AbstractComponentDecorator implements KeyEventDispatcher
JComponent or JFrame,
while dimming the component and displaying a wait cursor.AbstractComponentDecorator.PainterDEFAULT_BOUNDS, TOP| Constructor and Description |
|---|
WaitIndicator(JComponent target)
Place the wait indicator over the given component.
|
WaitIndicator(JFrame frame)
Place the wait indicator over the entire frame.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
dispatchKeyEvent(KeyEvent e)
Consume events targeted at our target component.
|
void |
dispose()
Remove the wait indicator.
|
void |
paint(Graphics g)
The default dims the blocked component.
|
attach, clipDecorationBounds, getComponent, getDecorationBounds, getPainter, getToolTipText, getToolTipText, isVisible, repaint, setCursor, setDecorationBounds, setDecorationBounds, setPainterBounds, setToolTipText, setVisible, synch, toStringpublic WaitIndicator(JFrame frame)
public WaitIndicator(JComponent target)
public void dispose()
dispose in class AbstractComponentDecoratorpublic boolean dispatchKeyEvent(KeyEvent e)
dispatchKeyEvent in interface KeyEventDispatcherpublic void paint(Graphics g)
paint in class AbstractComponentDecoratorCopyright © 2023. All rights reserved.