javax.swing.JFileChooser.repaint()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(171)

本文整理了Java中javax.swing.JFileChooser.repaint()方法的一些代码示例,展示了JFileChooser.repaint()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JFileChooser.repaint()方法的具体详情如下:
包路径:javax.swing.JFileChooser
类名称:JFileChooser
方法名:repaint

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();
  }
}

相关文章

JFileChooser类方法