Re: componentRef tag

Sam Terrell <[email protected]>
Newsgroups gmane.comp.java.luxor-xul.user
Message-ID <[email protected]>
denis cardon wrote:

> Hi Gerald,
> 
> Could you please give me a hint on how I should get a
> hold on the <componentref id=".."> component? In the
> form object, I can create a xulinput with the id as
> reference, but I have no clue on how to link my custom
> swing component to the componentref object.
> 
> Do you have an advice or a little code snipplet to
> give ma a hint?
> 
> Thanks
> 
> Denis
> 

Well, the easy part you probably already have:
<componentref id="stuff"/>

Then the other part:
public class X extends XulForm {
	public void init() {
		JTable stuff=new JTable();
		//blah blah blah

		addComponent("stuff",stuff);
	}
}

That should get you where you are going if you already have and XUL Form 
that is working :)

-Sam




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.