1 package nl.tudelft.simulation.introspection.mapping;
2
3 import java.awt.Component;
4
5 import javax.swing.JComponent;
6 import javax.swing.JTable;
7 import javax.swing.table.TableCellRenderer;
8
9 /***
10 * A renderer for Swing components
11 * <p>
12 * (c) copyright 2002-2005 <a href="http://www.simulation.tudelft.nl">Delft
13 * University of Technology </a>, the Netherlands. <br>
14 * See for project information <a
15 * href="http://www.simulation.tudelft.nl">www.simulation.tudelft.nl </a> <br>
16 * License of use: <a href="http://www.gnu.org/copyleft/lesser.html">Lesser
17 * General Public License (LGPL) </a>, no warranty.
18 *
19 * @author <a href="http://www.peter-jacobs.com/index.htm">Peter Jacobs </a>
20 * @version 1.2 Apr 15, 2004
21 * @since 1.5
22 */
23 public class SwingCellRenderer implements TableCellRenderer
24 {
25 /***
26 * @see javax.swing.table.TableCellRenderer#getTableCellRendererComponent(JTable,
27 * Object, boolean, boolean, int, int)
28 */
29 public Component getTableCellRendererComponent(final JTable table,
30 final Object value, final boolean isSelected,
31 final boolean hasFocus, final int row, final int column)
32 {
33 return (JComponent) value;
34 }
35 }