:: Forum >>

how to set row or cell tooltip ?

how to set row or cell tooltip ?

I found how to set column's tooltip.

// set column header tooltip
obj.setColumnProperty("tooltip", function(i){return "Tooltip for column " + i});

but I didn't find how to set row or cell 's tooltip.

//obj.setRowProperty("tooltip", function(i){return "tooltip"});
or
//obj.setDataProperty("tooltip", function(i){return "tooltip"});
or
// obj.defineDataProperty("tooltip", function(i){return "tooltip"});

can't work.

how to ? thanks.
Creatxr
Wednesday, March 23, 2005
public Component prepareRenderer(TableCellRenderer renderer,
int rowIndex, int vColIndex) {
Component c = super.prepareRenderer(renderer, rowIndex, vColIndex);
if (c instanceof JComponent) {
JComponent jc = (JComponent)c;
jc.setToolTipText((String)getValueAt(rowIndex, vColIndex));

}
return c;
}

over ride this function in jtable
oleg
Sunday, July 2, 2006
lol, its not java code, its javascript.
weird guy lol.
Paulo Cesar Silva Reis (PC from Brazil).
Monday, July 3, 2006

This topic is archived.


Back to support forum

Forum search