
Undocumented Secrets of MATLAB
®
-Java Programming256
MJFileChooser extends JFileChooser
67
with the IncludeFilterExtension, Show
OverwriteDialog, and UseAWTFileDialog write-only boolean properties. MJFileChooser
can be used both as an embedded non-modal component within an existing gure window, or
as a standalone modal dialog window (where the UseAWTFileDialog ag property comes
into play):
†
% Place a file-selection component as part of a GUI
jc = javaObjectEDT('com.mathworks.mwswing.MJFileChooser');
jc.setMultiSelectionEnabled(true); % = false by default
[jhc,hContainer] = javacomponent(jc,[10,10,500,400],gcf); % embedded
% The following section ...