"No cookie for you" type messages. Nothing fatal or all that much of a bummer, but something to notify the user about.
(String title, String message)
| 37 | * much of a bummer, but something to notify the user about. |
| 38 | */ |
| 39 | static public void showMessage(String title, String message) { |
| 40 | if (title == null) title = "Message"; |
| 41 | |
| 42 | if (Base.isCommandLine()) { |
| 43 | System.out.println(title + ": " + message); |
| 44 | |
| 45 | } else { |
| 46 | JOptionPane.showMessageDialog(new Frame(), message, title, |
| 47 | JOptionPane.INFORMATION_MESSAGE); |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | |
| 52 | /** |
no test coverage detected