java.lang.Object
is.codion.swing.common.ui.WaitCursor
Utility class for showing a wait cursor.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Removes a wait cursor request for the given windowstatic void
hide
(JComponent component) Removes a wait cursor request for the parent root pane of the given component, the wait cursor is activated once a request is made, but only deactivated once all such requests have been retracted.static void
Adds a wait cursor request for the given windowstatic void
show
(JComponent component) Adds a wait cursor request for the parent root pane of the given component, the wait cursor is activated once a request is made, but only deactivated once all such requests have been retracted.
-
Method Details
-
show
Adds a wait cursor request for the parent root pane of the given component, the wait cursor is activated once a request is made, but only deactivated once all such requests have been retracted. Best used with a try/finally block.WaitCursor.show(component); try { doSomething(); } finally { WaitCursor.hide(component); }
- Parameters:
component
- the component- See Also:
-
hide
Removes a wait cursor request for the parent root pane of the given component, the wait cursor is activated once a request is made, but only deactivated once all such requests have been retracted. Best used with a try/finally block.WaitCursor.show(component); try { doSomething(); } finally { WaitCursor.hide(component); }
- Parameters:
component
- the component- See Also:
-
show
Adds a wait cursor request for the given window- Parameters:
window
- the window
-
hide
Removes a wait cursor request for the given window- Parameters:
window
- the window
-