本文整理了Java中javax.swing.JFileChooser.repaint()
方法的一些代码示例,展示了JFileChooser.repaint()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JFileChooser.repaint()
方法的具体详情如下:
包路径:javax.swing.JFileChooser
类名称:JFileChooser
方法名:repaint
暂无
代码示例来源:origin: com.l2fprod.common/l2fprod-common-directorychooser
chooser.repaint();
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-cnd-api-remote
@Override
public void run() {
String path = lookingForIcon.getAbsolutePath();
String project = path + "/nbproject"; // NOI18N
File projectDir = chooser.getFileSystemView().createFileObject(project);
Icon icon = chooser.getFileSystemView().getSystemIcon(lookingForIcon);
if (projectDir.exists() && projectDir.isDirectory() && projectDir.canRead()) {
String projectXml = path + "/nbproject/project.xml"; // NOI18N
File projectFile = chooser.getFileSystemView().createFileObject(projectXml);
if (projectFile.exists()) {
String conf = path + "/nbproject/configurations.xml"; // NOI18N
File configuration = chooser.getFileSystemView().createFileObject(conf);
if (configuration.exists()) {
icon = ImageUtilities.loadImageIcon("org/netbeans/modules/cnd/makeproject/ui/resources/makeProject.gif", true); // NOI18N
}
}
}
synchronized (this) {
knownProjectIcons.put(lookingForIcon, icon);
lookingForIcon = null;
}
chooser.repaint();
}
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-cnd-api-remote-ui
@Override
public void run() {
String path = lookingForIcon.getAbsolutePath();
String project = path + "/nbproject"; // NOI18N
File projectDir = chooser.getFileSystemView().createFileObject(project);
Icon icon = chooser.getFileSystemView().getSystemIcon(lookingForIcon);
if (projectDir.exists() && projectDir.isDirectory() && projectDir.canRead()) {
String projectXml = path + "/nbproject/project.xml"; // NOI18N
File projectFile = chooser.getFileSystemView().createFileObject(projectXml);
if (projectFile.exists()) {
String conf = path + "/nbproject/configurations.xml"; // NOI18N
File configuration = chooser.getFileSystemView().createFileObject(conf);
if (configuration.exists()) {
icon = ImageUtilities.loadImageIcon("org/netbeans/modules/cnd/makeproject/resources/makeProject.gif", true); // NOI18N
}
}
}
synchronized (this) {
knownProjectIcons.put(lookingForIcon, icon);
lookingForIcon = null;
}
chooser.repaint();
}
}
内容来源于网络,如有侵权,请联系作者删除!