Class GuiUtils

java.lang.Object
zleurtor.scanmanager.view.gui.GuiUtils

public final class GuiUtils extends Object
A class containing utility methods.
Author:
Zleurtor
  • Method Details

    • showWarning

      public static void showWarning(String message, Component parentComponent)
      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

      public static void showError(String message, Component parentComponent)
      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

      public static void showWarning(String message, Throwable t, Component parentComponent)
      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

      public static void showError(String message, Throwable t, Component parentComponent)
      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

      public static void showWarning(Throwable t, Component parentComponent)
      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

      public static void showError(Throwable t, Component parentComponent)
      Shows an error message in a dialog.
      Parameters:
      t - The throwable to display.
      parentComponent - The component for which the error dialog shall be displayed.