1 |
/* |
/* |
2 |
* JSampler - a java front-end for LinuxSampler |
* JSampler - a java front-end for LinuxSampler |
3 |
* |
* |
4 |
* Copyright (C) 2005-2006 Grigor Iliev <grigor@grigoriliev.com> |
* Copyright (C) 2005-2008 Grigor Iliev <grigor@grigoriliev.com> |
5 |
* |
* |
6 |
* This file is part of JSampler. |
* This file is part of JSampler. |
7 |
* |
* |
76 |
|
|
77 |
/** |
/** |
78 |
* Shows a dialog with the specified error message. |
* Shows a dialog with the specified error message. |
79 |
* @param frame The parent <code>Frame</code> for the dialog. |
* @param parentComponent determines the Frame in which the dialog is displayed |
80 |
* @param msg The error message to be shown. |
* @param msg The error message to be shown. |
81 |
*/ |
*/ |
82 |
public static void |
public static void |
83 |
showErrorMessage(String msg, Frame frame) { |
showErrorMessage(String msg, Component parentComponent) { |
84 |
JOptionPane.showMessageDialog ( |
JOptionPane.showMessageDialog ( |
85 |
frame, msg, |
parentComponent, msg, |
|
i18n.getError("error"), |
|
|
JOptionPane.ERROR_MESSAGE |
|
|
); |
|
|
} |
|
|
|
|
|
/** |
|
|
* Shows a dialog with the specified error message. |
|
|
* @param dlg The parent <code>Dialog</code> from which the dialog is displayed. |
|
|
* @param msg The error message to be shown. |
|
|
*/ |
|
|
public static void |
|
|
showErrorMessage(String msg, Dialog dlg) { |
|
|
JOptionPane.showMessageDialog ( |
|
|
dlg, msg, |
|
86 |
i18n.getError("error"), |
i18n.getError("error"), |
87 |
JOptionPane.ERROR_MESSAGE |
JOptionPane.ERROR_MESSAGE |
88 |
); |
); |