資源簡介
僅限于從博客過來的博友們,不然你下了你也不知道怎么用
代碼片段和文件信息
function?[pathname]?=?uigetdir_workaround(start_path?dialog_title)
%?Pick?a?directory?with?the?Java?widgets?instead?of?uigetdir
import?javax.swing.JFileChooser;
if?nargin?==?0?||?isempty(start_path)
????start_path?=?pwd;
end
jchooser?=?javaobjectEDT(‘javax.swing.JFileChooser‘?start_path);
jchooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
if?nargin?>?1
????jc
- 上一篇:某三角閘門 ANSYS 命令流
- 下一篇:機械臂工作空間求解
評論
共有 條評論