Mercurial > hg > ltpda
comparison m-toolbox/classes/+utils/@helper/errorDlg.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f0afece42f48 |
---|---|
1 % ERRORDLG Create and open error dialog box. | |
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
3 % | |
4 % DESCRIPTION: ERRORDLG Create and open error dialog box | |
5 % | |
6 % CALL: errorMsgDlg(msg, title) | |
7 % | |
8 % VERSION: $Id: errorDlg.m,v 1.3 2009/09/16 13:54:53 ingo Exp $ | |
9 % | |
10 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
11 | |
12 function errorDlg(msg, title) | |
13 | |
14 if nargin == 1 | |
15 title = 'Error Dialog'; | |
16 end | |
17 | |
18 warning('off', 'MATLAB:JavaEDTAutoDelegation') | |
19 javax.swing.JOptionPane.showMessageDialog('', msg, title, javax.swing.JOptionPane.ERROR_MESSAGE) | |
20 warning('on', 'MATLAB:JavaEDTAutoDelegation') | |
21 end |