Hi,
I am facing following issue in my application.
The table cells in my application can have multiple values . The values are a set of Array or List of type lets say MyIPAddress.
I have written a renderer for MyIPAddress called MyIPAddressRenderer as below.
public class MyIPAddressRenderer extends ContextSensitiveCellRenderer implements ListCellRenderer {
// blah blah
...
//
@Override
public Component getListCellRendererComponent(JList list, Object value,
int index, boolean isSelected, boolean cellHasFocus) {
// implemeted here
}
//get & set icon implemented
//get & set tool tip implemented
}
Now the issue I am seeing is :
1) When I have single value in the table cell (say cell of IP address Column ) i.e. I have single IP Address, it showing the contents of cell properly.
That means IPaddress is coming with Icon and Tool tip. Works fine. No issues.
2) When I have multiple values i.e. multiple IP address to be displayed in the cell, somehow it is not showing Icon and tool tip text.
I have a feeling like somehow I might be doing something wrong either in registering the renderer OR not implemented something which I should have implements.
Appreciate any help in this regard.
Thanks,
Sandeep