Package zleurtor.scanmanager.view.gui
Class GuiUtils
java.lang.Object
zleurtor.scanmanager.view.gui.GuiUtils
A class containing utility methods.
- Author:
- Zleurtor
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Shows an error message in a dialog.static void
Shows an error message in a dialog.static void
Shows an error message in a dialog.static void
showWarning
(String message, Component parentComponent) Shows a warning message in a dialog.static void
showWarning
(String message, Throwable t, Component parentComponent) Shows an warning message in a dialog.static void
showWarning
(Throwable t, Component parentComponent) Shows an warning message in a dialog.
-
Method Details
-
showWarning
Shows a warning message in a dialog.- Parameters:
message
- The message to display.parentComponent
- The component for which the warning dialog shall be displayed.
-
showError
Shows an error message in a dialog.- Parameters:
message
- The message to display.parentComponent
- The component for which the error dialog shall be displayed.
-
showWarning
Shows an warning message in a dialog.- Parameters:
message
- The message to display.t
- The throwable to display.parentComponent
- The component for which the error dialog shall be displayed.
-
showError
Shows an error message in a dialog.- Parameters:
message
- The message to display.t
- The throwable to display.parentComponent
- The component for which the error dialog shall be displayed.
-
showWarning
Shows an warning message in a dialog.- Parameters:
t
- The throwable to display.parentComponent
- The component for which the error dialog shall be displayed.
-
showError
Shows an error message in a dialog.- Parameters:
t
- The throwable to display.parentComponent
- The component for which the error dialog shall be displayed.
-