posted 17 years ago
Hi,
I am instantiating a new object(A JPanel, with 2 TextFields) for some cells that hold a value of type X, to be returned by the getTableCellRendererComponent/getTableCellEditorComponent calls. I understand doing this is not suggested in Swing, but, I only have few cells that will qualify for this editor/renderer. However, my problem is that, I need to access the object that is being used currently for editing or rendering a specific cell to generate the tooltip text. The tooltip is dependent on values that are entered in the text boxes or are currently displaying in them AND other objects that are specific to each panel. So when I mouse over row x, I need to access the panel I instantiated to render/edit row x earlier and when I mouse over row y, I need to access the panel that I instantiated for row y. I am not sure how I can get a reference to these objects.
Is this doable? There must be a way...
Please help!