Mercurial > hg > ltpda
comparison m-toolbox/classes/+utils/@helper/warnDlg.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 % WARNDLG Create and open warn dialog box. | |
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
3 % | |
4 % DESCRIPTION: WARNDLG Create and open warn dialog box | |
5 % | |
6 % CALL: warnMsgDlg(msg, title) | |
7 % | |
8 % VERSION: $Id: warnDlg.m,v 1.3 2009/09/16 13:54:53 ingo Exp $ | |
9 % | |
10 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
11 | |
12 function warnDlg(msg, title) | |
13 | |
14 if nargin == 1 | |
15 title = 'Warning Dialog'; | |
16 end | |
17 | |
18 warning('off', 'MATLAB:JavaEDTAutoDelegation') | |
19 javax.swing.JOptionPane.showMessageDialog('', msg, title, javax.swing.JOptionPane.WARNING_MESSAGE) | |
20 warning('on', 'MATLAB:JavaEDTAutoDelegation') | |
21 end |