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; 005 006 import javax.swing.*; 007 008 /** 009 * @author Rouzbeh Ebrahimi 010 */ 011 public class GraphComponentInitializer { 012 private void setLabelAndIcon(String label, ImageIcon icon) { 013 if (icon != null && icon.getIconWidth() > 1) { 014 // setIcon(icon); 015 // setToolTipText(label); 016 } else { 017 // setText(label); 018 } 019 } 020 021 }