001 // GraphLab Project: http://graphlab.sharif.edu 002 // Copyright (C) 2008 Mathematical Science Department of Sharif University of Technology 003 // Distributed under the terms of the GNU General Public License (GPL): http://www.gnu.org/licenses/ 004 package graphlab.ui.components.gpropertyeditor.renderers; 005 006 import graphlab.ui.components.gpropertyeditor.GBasicCellRenderer; 007 008 import javax.swing.*; 009 import java.awt.*; 010 011 /** 012 * User: root 013 */ 014 public class GStringRenderer implements GBasicCellRenderer { 015 public Component getRendererComponent(Object value) { 016 return new JLabel(value + ""); 017 } 018 }