set command in matlab and java object
1 回表示 (過去 30 日間)
古いコメントを表示
I have a piece of code which runs a GUI in Matlab. And this particular command line:
set(jPb,'StringPainted','on','Value',0,'Indeterminate','off');
brings up this error:
Warning: Possible deprecated use of set('StringPainted','on') on Java boolean property: use jobj.setStringpainted(true) instead.
Warning: Possible deprecated use of set('Indeterminate','off') on Java boolean property: use jobj.setIndeterminate(false)
instead.
Anyone how to implement this solution? Thank you.
0 件のコメント
回答 (1 件)
Image Analyst
2016 年 5 月 8 日
Did you finish reading the warning messages? They tell you what to do:
use jobj.setStringpainted(true) instead.
use jobj.setIndeterminate(false)
参考
カテゴリ
Help Center および File Exchange で Call Java from MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!