Example usage for javax.swing.filechooser FileView subclass-usage

List of usage examples for javax.swing.filechooser FileView subclass-usage

Introduction

In this page you can find the example usage for javax.swing.filechooser FileView subclass-usage.

Usage

From source file JavaFileView.java

class JavaFileView extends FileView {
    Icon jarIcon = new ImageIcon("yourFile.gif");

    public String getName(File file) {
        String filename = file.getName();
        if (filename.endsWith(".java")) {

From source file Main.java

class JavaFileView extends FileView {
    Icon javaIcon = new MyIcon(Color.BLUE);

    Icon classIcon = new MyIcon(Color.GREEN);

    Icon htmlIcon = new MyIcon(Color.RED);

From source file MainClass.java

class JavaFileView extends FileView {
    Icon javaIcon = new MyIcon(Color.BLUE);

    Icon classIcon = new MyIcon(Color.GREEN);

    Icon htmlIcon = new MyIcon(Color.RED);

From source file components.ImageFileView.java

public class ImageFileView extends FileView {
    ImageIcon jpgIcon = Utils.createImageIcon("images/jpgIcon.gif");
    ImageIcon gifIcon = Utils.createImageIcon("images/gifIcon.gif");
    ImageIcon tiffIcon = Utils.createImageIcon("images/tiffIcon.gif");
    ImageIcon pngIcon = Utils.createImageIcon("images/pngIcon.png");

From source file MyViewChooser.java

class ThumbNailFileView extends FileView {

    private Icon fileIcon = MetalIconFactory.getTreeLeafIcon();

    private Icon folderIcon = MetalIconFactory.getTreeFolderIcon();

From source file FileSample.java

class JavaFileView extends FileView {
    Icon javaIcon = new DiamondIcon(Color.blue);

    Icon classIcon = new DiamondIcon(Color.green);

    Icon htmlIcon = new DiamondIcon(Color.red);

From source file FileChooserTest.java

/**
 * A file view that displays an icon for all files that match a file filter.
 */
class FileIconView extends FileView {
    /**
     * Constructs a FileIconView.

From source file org.executequery.components.FileChooserDialog.java

class DefaultFileView extends FileView {

    private ImageIcon ZIP_ICON;
    private ImageIcon JAR_ICON;
    private ImageIcon TEXT_ICON;
    private ImageIcon SQL_ICON;

From source file FileChooserDemo2.java

class ImageFileView extends FileView {
    ImageIcon jpgIcon = Utils.createImageIcon("images/jpgIcon.gif");
    ImageIcon gifIcon = Utils.createImageIcon("images/gifIcon.gif");
    ImageIcon tiffIcon = Utils.createImageIcon("images/tiffIcon.gif");
    ImageIcon pngIcon = Utils.createImageIcon("images/pngIcon.png");

From source file FilterSample.java

class JavaFileView extends FileView {
    Icon javaIcon = new DiamondIcon(Color.blue);

    Icon classIcon = new DiamondIcon(Color.green);

    Icon htmlIcon = new DiamondIcon(Color.red);