All Downloads are FREE. Search and download functionalities are using the official Maven repository.

editor.LabTreeCellRenderer Maven / Gradle / Ivy

The newest version!
package editor;

import javax.swing.*;
import javax.swing.border.EmptyBorder;

/**
 */
public class LabTreeCellRenderer extends AbstractTreeCellRenderer
{
  public LabTreeCellRenderer( JTree tree )
  {
    super( tree );
  }

  public void configure()
  {
    if( getNode() == null )
    {
      return;
    }

    setBorder( new EmptyBorder( 0, 3, 0, 3 ) );

    setText( getNode().getText() );
    setIcon( getNode().getIcon() );
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy