Example usage for javax.swing CellRendererPane CellRendererPane

List of usage examples for javax.swing CellRendererPane CellRendererPane

Introduction

In this page you can find the example usage for javax.swing CellRendererPane CellRendererPane.

Prototype

public CellRendererPane() 

Source Link

Document

Construct a CellRendererPane object.

Usage

From source file:com.projity.pm.graphic.network.NetworkRenderer.java

public void init() {
    GraphParams graphInfo = getGraphInfo();
    if (graphInfo instanceof JComponent)
        container = (JComponent) graphInfo;
    config = GraphicConfiguration.getInstance();
    linkRenderer = new LinkRenderer();
    renderer = new NetworkCellRenderer(graphInfo);
    if (container != null) {
        editor = new NetworkCellEditor(graphInfo, container);
        rendererPane = new CellRendererPane();
        container.add(rendererPane);/*from  w w  w .java 2 s.  co m*/
    }
}

From source file:org.nuclos.client.ui.resplan.header.JHeaderGrid.java

public JHeaderGrid(Orientation orientation, TypesafeListModel<E> model, GroupMapper<E> categoryModel) {
    this.orientation = orientation;
    this.cellExtent = orientation.extentFrom(DEFAULT_CELL_EXTENT);

    this.gridColor = new Color(163, 172, 187);

    this.cellRendererPane = new CellRendererPane();
    this.cellRendererProvider = createDefaultCellRendererProvider();
    this.add(cellRendererPane);

    this.setModel(model);
    this.setCategoryModel(categoryModel);

    // Enable location-sensitive tool-tips (don't fiddle with setting a dummy tooltip,
    // registering the component with the ToolTipManager is the standard Swing way to do it)
    ToolTipManager.sharedInstance().registerComponent(this);

    initializeModel();/*from ww  w  .  ja  va2 s . co m*/

    mouseActionHandler = new MultiActionMouseHandler(new DefaultMouseHandler());
    mouseActionHandler.install(this);
}