no message
This commit is contained in:
@@ -319,7 +319,7 @@ public class UI {
|
||||
}
|
||||
//---------------
|
||||
public static boolean Question(Component parent, String text) {
|
||||
return !Current.hasUI() || (JOptionPane.showConfirmDialog(parent,
|
||||
return !CommonUtils.hasUI() || (JOptionPane.showConfirmDialog(parent,
|
||||
text + "?",
|
||||
"Подтверждение",
|
||||
JOptionPane.YES_NO_OPTION,
|
||||
@@ -330,16 +330,16 @@ public class UI {
|
||||
}
|
||||
public static void Info(String message) {
|
||||
CommonUtils.CopyToClipboard(message);
|
||||
if (Current.hasUI())
|
||||
if (CommonUtils.hasUI())
|
||||
JOptionPane.showMessageDialog(getFrontWindow(), message, "", 1);
|
||||
}
|
||||
public static void Error(String message) {
|
||||
CommonUtils.CopyToClipboard(message);
|
||||
if (Current.hasUI())
|
||||
if (CommonUtils.hasUI())
|
||||
JOptionPane.showMessageDialog(getFrontWindow(), message, "", 0);
|
||||
}
|
||||
public static boolean Warning(String text) {
|
||||
return !Current.hasUI() ||
|
||||
return !CommonUtils.hasUI() ||
|
||||
JOptionPane.showConfirmDialog(getFrontWindow(),
|
||||
text + "\nВы уверены?",
|
||||
"Подтверждение",
|
||||
|
||||
Reference in New Issue
Block a user