Package org.cytoscape.util.swing
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 Summary
Constructors Constructor Description MessageDialogs()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
showMessageDialog(JFrame parent, String title, String message)
Shows a small modal dialog with a short message and an "Ok" button.static boolean
showOkCancelDialog(JFrame parent, String title, String message)
Shows a small modal dialog with a short message and "Ok" and "Cancel" buttons.static boolean
showYesNoDialog(JFrame parent, String title, String message)
Shows a small modal dialog with a short message and "Yes" and "No" buttons.
-
-
-
Method Detail
-
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.
-
-