public class WaitIndicator extends AbstractComponentDecorator implements KeyEventDispatcher
JComponent
or JFrame
,
while dimming the component and displaying a wait cursor.AbstractComponentDecorator.Painter
DEFAULT_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, toString
public WaitIndicator(JFrame frame)
public WaitIndicator(JComponent target)
public void dispose()
dispose
in class AbstractComponentDecorator
public boolean dispatchKeyEvent(KeyEvent e)
dispatchKeyEvent
in interface KeyEventDispatcher
public void paint(Graphics g)
paint
in class AbstractComponentDecorator
Copyright © 2023. All rights reserved.