本文整理了Java中java.awt.FileDialog.setMultipleMode()
方法的一些代码示例,展示了FileDialog.setMultipleMode()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FileDialog.setMultipleMode()
方法的具体详情如下:
包路径:java.awt.FileDialog
类名称:FileDialog
方法名:setMultipleMode
暂无
代码示例来源:origin: redwarp/9-Patch-Resizer
fileDialog.setMultipleMode(true);
fileDialog.setTitle(Localization.get("image_types"));
代码示例来源:origin: chewiebug/GCViewer
public void actionPerformed(final ActionEvent e) {
if(OSXSupport.isOSX()) {
// there is no way to show a checkbox on the native dialog so
// open a new window instead
FileDialog dialog = new FileDialog(gcViewer, LocalisationHelper.getString("fileopen_dialog_title"), FileDialog.LOAD);
dialog.setMultipleMode(true);
dialog.setVisible(true);
// dialog.setFilenameFilter doesn't do much on OSX
openFiles(dialog.getFiles(), false);
dialog.dispose();
return;
}
openFileView.setShowAddCheckBox(gcViewer.getSelectedGCDocument() != null);
// TODO SWINGWORKER: open at last openposition (directory)
final int val = openFileView.showOpenDialog(gcViewer);
if (val == JFileChooser.APPROVE_OPTION) {
openFiles(openFileView.getSelectedFiles(), openFileView.isAddCheckBoxSelected());
}
}
代码示例来源:origin: org.gosu-lang.gosu/gosu-editor
public void openProject()
{
FileDialog fc = new FileDialog( EditorUtilities.frameForComponent( this ), "Open Project", FileDialog.LOAD );
fc.setDirectory( getProject().getProjectDir().getAbsolutePath() );
fc.setMultipleMode( false );
fc.setFile( "*.prj" );
fc.setVisible( true );
String selectedFile = fc.getFile();
if( selectedFile != null )
{
File prjFile = new File( fc.getDirectory(), selectedFile );
if( prjFile.isFile() )
{
File projectDir = prjFile.getParentFile();
openProject( projectDir );
}
}
}
代码示例来源:origin: sc.fiji/Trainable_Segmentation
"Select file(s) to classify", FileDialog.LOAD );
fd.setDirectory( dir );
fd.setMultipleMode( true );
代码示例来源:origin: fiji/Trainable_Segmentation
"Select file(s) to classify", FileDialog.LOAD );
fd.setDirectory( dir );
fd.setMultipleMode( true );
代码示例来源:origin: eu.mihosoft.vrl/vrl
FileDialog fd = new FileDialog((JFrame) VSwingUtil.
getTopmostParent(parent), "Open Files", FileDialog.LOAD);
fd.setMultipleMode(true);
System.setProperty("apple.awt.fileDialogForDirectories", "false");
代码示例来源:origin: org.gosu-lang.gosu/gosu-lab
public void openExperiment()
{
FileDialog fc = new FileDialog( EditorUtilities.frameForComponent( this ), "Open Experiment", FileDialog.LOAD );
fc.setDirectory( PathUtil.getAbsolutePathName( getExperiment().getExperimentDir() ) );
fc.setMultipleMode( false );
fc.setFile( "*.prj" );
fc.setVisible( true );
String selectedFile = fc.getFile();
if( selectedFile != null )
{
Path prjFile = PathUtil.create( fc.getDirectory(), selectedFile );
if( PathUtil.isFile( prjFile ) )
{
Path experimentDir = prjFile.getParent();
openExperiment( experimentDir );
}
}
}
内容来源于网络,如有侵权,请联系作者删除!