You have an existing JFrame and you want to change its contents (I think)
based on XML.

That JFrame contains a content panel. You can construct a panel using Jelly
XML. Set the var attribute on the panel like this <panel name="foo"
var="bar">.

The Jelly script would look like this:

<xml header here>
<panel name="foo" var="bar">
        <panel contents here>
</panel>

That panel is now set into the JellyContext with the variable name "bar".
After you run the script, you can get this variable out of the context a
using context.getVariable().

Now, you can replace the content panel of your frame with this new panel. 

Is this what you were thinking?

Hans

-----Original Message-----
From: Paul Libbrecht [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 24, 2004 3:13 AM
To: Jakarta Commons Developers List
Subject: [jelly][swing] reloadable component ?


Hi,

I am wondering how much of the following is now doable with the 
clean-up of attached beans that has happened recently: I'd like to use 
jelly-swing components in a similar way to browser windows with an 
ability to reset and refill them with, probably, the same jelly script.

Is it safe for me to just recall doTag on this component?
I fear not.

paul


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to