本文整理了Java中javax.swing.JFileChooser.updateUI()
方法的一些代码示例,展示了JFileChooser.updateUI()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JFileChooser.updateUI()
方法的具体详情如下:
包路径:javax.swing.JFileChooser
类名称:JFileChooser
方法名:updateUI
暂无
代码示例来源:origin: org.gephi/directory-chooser
@Override
public void propertyChange(PropertyChangeEvent evt) {
JFileChooser fileChooser = (JFileChooser)evt.getSource();
fileChooser.updateUI();
}
}
代码示例来源:origin: stackoverflow.com
JFileChooser chooser = new JFileChooser();
chooser.setLocale(Locale.getDefault());
chooser.updateUI();
代码示例来源:origin: stackoverflow.com
import java.io.File;
import javax.swing.JFileChooser;
public class Demo {
public static void main(String[] args) {
new Demo();
}
public Demo() {
JFileChooser chooser = new JFileChooser();
chooser.setDialogTitle("Chooser test");
chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
chooser.setAcceptAllFileFilterUsed(false);
File root = chooser.getCurrentDirectory();
chooser.setCurrentDirectory(new File(root.getParent()));
chooser.setSelectedFile(root);
chooser.updateUI();
chooser.showSaveDialog(null);
}
}
代码示例来源:origin: stackoverflow.com
JFileChooser fileChooser = new JFileChooser();
fileChooser.setLocale(getLocale());
fileChooser.updateUI();
File file = new File(lastFolder.getPath() + System.getProperty("file.separator") + DateTime.now().toString() + "_" + jasperPrint.getName());
fileChooser.setSelectedFile(file);
代码示例来源:origin: stackoverflow.com
chooser.updateUI(); //Create UI objects
UIManager.setLookAndFeel(NimbusLookAndFeel.class.getName()); //Now set look and feel
代码示例来源:origin: pentaho/pentaho-reporting
fileChooser.setCurrentDirectory( currentDirectory );
fileChooser.setSelectedFiles( selectedFiles );
fileChooser.updateUI();
fileChooser.resetChoosableFileFilters();
for ( int i = 0; i < filters.length; i++ ) {
代码示例来源:origin: jasperreports/jasperreports
fileChooser.updateUI();
for(int i = 0; i < saveContributors.size(); i++)
代码示例来源:origin: stackoverflow.com
at MyFileChooser.getSelectedFile(MainClass2.java:27)
at com.apple.laf.AquaFileChooserUI.installComponents(AquaFileChooserUI.java:1436)
at com.apple.laf.AquaFileChooserUI.installUI(AquaFileChooserUI.java:122)
at javax.swing.JComponent.setUI(JComponent.java:670)
at javax.swing.JFileChooser.updateUI(JFileChooser.java:1798)
at javax.swing.JFileChooser.setup(JFileChooser.java:360)
at javax.swing.JFileChooser.<init>(JFileChooser.java:333)
代码示例来源:origin: jasperreports/jasperreports
fileChooser.updateUI();
for(int i = 0; i < saveContributors.size(); i++)
代码示例来源:origin: stackoverflow.com
UIManager.put("FileChooser.newFolderErrorText", "newFolder");
UIManager.put("FileChooser.acceptAllFileFilterText", "Accept");
fc.updateUI();
SwingUtilities.updateComponentTreeUI(fc);
内容来源于网络,如有侵权,请联系作者删除!