本文整理了Java中javax.swing.JFileChooser.rescanCurrentDirectory()
方法的一些代码示例,展示了JFileChooser.rescanCurrentDirectory()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JFileChooser.rescanCurrentDirectory()
方法的具体详情如下:
包路径:javax.swing.JFileChooser
类名称:JFileChooser
方法名:rescanCurrentDirectory
暂无
代码示例来源:origin: org.netbeans.api/org-openide-util
dialog.setBounds(findCenterBounds(parent.getGraphicsConfiguration(), dialog.getSize()));
chooser.rescanCurrentDirectory();
代码示例来源:origin: org.netbeans.api/org-openide-util-ui
dialog.setBounds(findCenterBounds(parent.getGraphicsConfiguration(), dialog.getSize()));
chooser.rescanCurrentDirectory();
代码示例来源:origin: net.sourceforge.jadex/jadex-tools-base-swing
/**
* Set the file chooser.
*/
public void setFileChooser(JFileChooser chooser)
{
this.chooser = chooser;
chooser.rescanCurrentDirectory();
}
代码示例来源:origin: net.sourceforge.jadex/jadex-tools-base-swing
public void customResultAvailable(FileData[] remfiles)
{
File[] files = RemoteFile.convertToFiles(remfiles);
children.put("roots", files);
// System.out.println("roots: "+SUtil.arrayToString(files));
if(chooser!=null)
chooser.rescanCurrentDirectory();
// System.out.println("Found roots: "+SUtil.arrayToString(files));
}
});
代码示例来源:origin: com.l2fprod.common/l2fprod-common-directorychooser
public void actionPerformed(ActionEvent e) {
JFileChooser fc = getFileChooser();
fc.rescanCurrentDirectory();
}
}
代码示例来源:origin: net.sourceforge.jadex/jadex-tools-base-swing
public void customResultAvailable(FileData[] remfiles)
{
RemoteFile[] files = RemoteFile.convertToFiles(remfiles);
// System.out.println("children: "+dir+" "+SUtil.arrayToString(files));
children.put(dir.getAbsolutePath(), files);
for(int i=0; i<files.length; i++)
{
parents.put(files[i].getAbsolutePath(), dir);
}
if(chooser!=null)
chooser.rescanCurrentDirectory();
}
});
代码示例来源:origin: stackoverflow.com
final JFileChooser fileChooser = new JFileChooser();
fileChooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
fileChooser.addMouseListener(new MouseListener() {
@Override
public void mouseClicked(MouseEvent arg0) {
if(arg0.getClickCount() == 2) {
File file = fileChooser.getSelectedFile();
if(file.isDirectory()) {
fileChooser.setCurrentDirectory(file);
fileChooser.rescanCurrentDirectory();
}
else {
fileChooser.approveSelection();
}
}
}
//Other methods (can be empty)
});
代码示例来源:origin: stackoverflow.com
jFileChooser.rescanCurrentDirectory();
代码示例来源:origin: com.l2fprod.common/l2fprod-common-directorychooser
fc.setSelectedFile(newFolder);
fc.rescanCurrentDirectory();
} else {
JOptionPane.showMessageDialog(fc,
代码示例来源:origin: notzippy/JALOPY2-MAIN
dialog.pack();
dialog.setLocationRelativeTo(parent);
chooser.rescanCurrentDirectory();
代码示例来源:origin: uk.gov.nationalarchives.thirdparty.netbeans/org-openide-util
dialog.setBounds(findCenterBounds(parent.getGraphicsConfiguration(), dialog.getSize()));
chooser.rescanCurrentDirectory();
代码示例来源:origin: in.jlibs/org-openide-util
dialog.setBounds(findCenterBounds(parent.getGraphicsConfiguration(), dialog.getSize()));
chooser.rescanCurrentDirectory();
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
dialog.getSize()));
chooser.rescanCurrentDirectory();
final int[] retValue = new int[] { javax.swing.JFileChooser.CANCEL_OPTION };
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
dialog.getSize()));
chooser.rescanCurrentDirectory();
final int[] retValue = new int[] { javax.swing.JFileChooser.CANCEL_OPTION };
代码示例来源:origin: stackoverflow.com
rescanCurrentDirectory();
parent.add(this);
revalidate();
代码示例来源:origin: stackoverflow.com
jf.rescanCurrentDirectory();
代码示例来源:origin: stackoverflow.com
rescanCurrentDirectory();
parent.add(this);
revalidate();
代码示例来源:origin: org.opentcs.thirdparty.jhotdraw/jhotdraw
chooser.rescanCurrentDirectory();
sheet.pack();
sheet.show();
内容来源于网络,如有侵权,请联系作者删除!