folder browser integrate in a gui

조회 수: 13 (최근 30일)
Badr Sahib
Badr Sahib 2017년 6월 28일
댓글: Badr Sahib 2017년 7월 5일
Hallo, How i can integrate a explorer (folder browser) in a gui by listbox or axes?

채택된 답변

Jan
Jan 2017년 6월 28일
  댓글 수: 2
Badr Sahib
Badr Sahib 2017년 6월 28일
Thanks
Badr Sahib
Badr Sahib 2017년 7월 5일
Hi Simon,
Thank you for your reply but I can not go further. I have an example for you here. How I can now insert a calback function for the pushbutton (open). Without closing the figure. I want to open excel files or general excel photos and pdf files. I mean, I would like to open a window and every time open a file and the figure should be kept open.
%%%%%%
hFig = dialog('Name','Select file', 'units','pixel', 'pos',[200,200,500,600]);
javaComponentName = 'javax.swing.JFileChooser';
[hjFileChooser, hContainer] = javacomponent(javaComponentName, [0,200,500,400], hFig);
hjFileChooser.setCurrentDirectory(java.io.File(pwd));
hjFileChooser.setMultiSelectionEnabled(false);
drawnow;
%%%%%
thank you in advance

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Desktop에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by