List of usage examples for javax.swing.table JTableHeader JTableHeader
public JTableHeader()
JTableHeader
with a default TableColumnModel
. From source file:com.emental.mindraider.ui.outline.OutlineSorterJPanel.java
protected JTableHeader createDefaultTableHeader() { return new JTableHeader() { public String getToolTipText(MouseEvent e) { java.awt.Point p = e.getPoint(); int index = columnModel.getColumnIndexAtX(p.x); int realIndex = columnModel.getColumn(index).getModelIndex(); return columnNames[realIndex]; }//from ww w .jav a 2s . c o m private static final long serialVersionUID = -3219707005673982727L; }; }
From source file:org.openconcerto.task.TodoListPanel.java
public JComponentTableCellRenderer(Icon icon) { super();/*from www.j a v a 2 s .c om*/ this.icon = icon; this.renderer = new JTableHeader().getDefaultRenderer(); }