The action in question is attached to the button that doesn't exist until
someone selects a row in the table.  I don't want the video to play when
they click the row. Only when they click the button rendered as a result of
clicking the row. Each button has a different video proxy url associated
with it and that info isn't in the table.

Maybe I'm misunderstinading... are you suggesting having one of the things
in the table row be an object and have the action associated with all
buttons be to query the table for the selected row, grab that object and
figure out the url to load from it?  Sounds doable, but, how am I supposed
to, without preprocessing, assign the text the button displays?

I mean, yeah I could do all this programmatically, but the thing is we know
for a fact that the items and text displayed as a result are going to change
and rearrange a lot. We'd like to have as much of that be in the template as
possible and not have to code the creation of all the swing objects.

-Kate


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, May 30, 2003 3:25 AM
To: [email protected]
Subject: Re: [Forum] fuhgeddaboudit


[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


_______________________________________________
Forum mailing list
[email protected]
http://mars.lunarpages.com/mailman/listinfo/forum_carlsbadcubes.com


Reply via email to