[EMAIL PROTECTED] wrote:

Yes, we could look up the info before rendering and that would take care of
the button text and the labels but not the action associated with the
specific button.



Hello Kate,

why don't you have the action be a selection listener on the table? You remember the jtable you are displaying and if the actionPerformed() occurs, get the selected row. then play the video of the current selection. This works well with displaying the text, image and the like as well. In a similar case I had a separate ContentDisplayHandler which took care of rendering some details, which was instantiated by the action which made something with the selected row.

To have a separate action for *each row* sounds not that good. Ok, maybe the gc will take care of that because the action isn't referenced from somewhere else.

Maybe I could not get the whole idea, though.

Yours,

Frank


Reply via email to