KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jacorb > naming > namemanager > NSTableCellRenderer


1 package org.jacorb.naming.namemanager;
2
3 import javax.swing.*;
4 import javax.swing.tree.*;
5 import java.awt.*;
6 import javax.swing.table.*;
7
8 /**
9  *
10  */

11 public class NSTableCellRenderer
12     extends DefaultTableCellRenderer
13 {
14     public Component getTableCellRendererComponent(
15                             JTable table, Object JavaDoc color,
16                             boolean isSelected, boolean hasFocus,
17                             int row, int column)
18     {
19         super.getTableCellRendererComponent(table, color, isSelected, hasFocus, row, column);
20         setForeground(Color.blue);
21         return this;
22     }
23 }
24  
25
Popular Tags