Package org.cytoscape.util.swing
Class MessageDialogs
java.lang.Object
org.cytoscape.util.swing.MessageDialogs
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Constructor Details
-
MessageDialogs
public MessageDialogs()
-
-
Method Details
-
showMessageDialog
Shows a small modal dialog with a short message and an "Ok" button. -
showYesNoDialog
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
Shows a small modal dialog with a short message and "Ok" and "Cancel" buttons.- Returns:
- true If the "Ok" button was clicked, false otherwise.
-