158 |
String msg = getErrorMessage(e); |
String msg = getErrorMessage(e); |
159 |
|
|
160 |
CC.getLogger().log(Level.INFO, msg, e); |
CC.getLogger().log(Level.INFO, msg, e); |
161 |
|
|
162 |
JOptionPane.showMessageDialog ( |
JOptionPane.showMessageDialog ( |
163 |
dlg, msg, |
dlg, msg, |
164 |
i18n.getError("error"), |
i18n.getError("error"), |
170 |
* Brings up a question dialog with Yes, No options, empty title and the specified message. |
* Brings up a question dialog with Yes, No options, empty title and the specified message. |
171 |
* @param parent The parent <code>Component</code> for the dialog. |
* @param parent The parent <code>Component</code> for the dialog. |
172 |
* @param message The message to display. |
* @param message The message to display. |
173 |
|
* @return <code>true</code> if the user chooses "yes", <code>false</code> otherwise. |
174 |
*/ |
*/ |
175 |
public static boolean |
public static boolean |
176 |
showYesNoDialog(Component parent, String message) { |
showYesNoDialog(Component parent, String message) { |
182 |
* @param parent The parent <code>Component</code> for the dialog. |
* @param parent The parent <code>Component</code> for the dialog. |
183 |
* @param message The message to display. |
* @param message The message to display. |
184 |
* @param title The dialog's title. |
* @param title The dialog's title. |
185 |
|
* @return <code>true</code> if the user chooses "yes", <code>false</code> otherwise. |
186 |
*/ |
*/ |
187 |
public static boolean |
public static boolean |
188 |
showYesNoDialog(Component parent, String message, String title) { |
showYesNoDialog(Component parent, String message, String title) { |