3.2.0

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
March 23,
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
July 2,
lol, its not java code, its javascript.
weird guy lol.
Paulo Cesar Silva Reis (PC from Brazil).
July 3,

This topic is archived.

See also:


Back to support forum