Example usage for javax.swing.tree DefaultTreeCellRenderer subclass-usage

List of usage examples for javax.swing.tree DefaultTreeCellRenderer subclass-usage

Introduction

In this page you can find the example usage for javax.swing.tree DefaultTreeCellRenderer subclass-usage.

Usage

From source file ClassTree.java

/**
 * This class renders a class name either in plain or italic. Abstract classes are italic.
 */
class ClassNameTreeCellRenderer extends DefaultTreeCellRenderer {
    public Component getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded,
            boolean leaf, int row, boolean hasFocus) {

From source file display.containers.FileManager.java

/** A TreeCellRenderer for a File. */
class FileTreeCellRenderer extends DefaultTreeCellRenderer {

    private FileSystemView fileSystemView;

    private JLabel label;