xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thierry Kormann <tkorm...@ilog.fr>
Subject Re: Embed a Swing Component in an JSVGCanvas
Date Tue, 08 Jan 2002 13:32:54 GMT
On Monday 07 January 2002 21:06, Warren W. Thompson wrote:
> Thank you pointing me in the right direction Thierry! :)
>
> I would like something a little more generic than creating a different
> SVG element for every Swing component. I think it might be possible to
> make something like...
>
> <batikSwing:awtComponent style="class:javax.swing.JButton;foreground:red"
> .../>
>
> ...so that all of the existing Swing components would be available,
> as well as any custom components that a developer may have created.
>
> Does this sort of approach sound feasible?

absolutely.

Swing components are JavaBeans so introspection is easy to do to set 
properties and instantiate your class.

Thierry.


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Mime
View raw message