Class MessageDialogs

java.lang.Object
org.cytoscape.util.swing.MessageDialogs

public class MessageDialogs extends Object
There have been some issues with JOptionPane not working correctly when triggered from a command or automation script. This utility class provides some static methods for showing simple message and confirmation dialogs.
  • Constructor Details

    • MessageDialogs

      public MessageDialogs()
  • Method Details

    • showMessageDialog

      public static void showMessageDialog(JFrame parent, String title, String message)
      Shows a small modal dialog with a short message and an "Ok" button.
    • showYesNoDialog

      public static boolean showYesNoDialog(JFrame parent, String title, String message)
      Shows a small modal dialog with a short message and "Yes" and "No" buttons.
      Returns:
      true If the "Yes" button was clicked, false otherwise.
    • showOkCancelDialog

      public static boolean showOkCancelDialog(JFrame parent, String title, String message)
      Shows a small modal dialog with a short message and "Ok" and "Cancel" buttons.
      Returns:
      true If the "Ok" button was clicked, false otherwise.