Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Daniele Futtorovic Newsgroups: comp.lang.java.programmer Subject: Re: how to bypass this swing limit Date: Fri, 16 Sep 2011 18:31:03 +0200 Organization: A noiseless patient Spider Lines: 14 Message-ID: References: <99d5e91e-983c-4b87-ba97-657ccf137521@glegroupsg2000goo.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Injection-Date: Fri, 16 Sep 2011 16:35:52 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="WrQ6TY7cZS4XmFmZxCpJlw"; logging-data="13055"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19X3x4q3ogdwCLi3kb7MkEh" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.22) Gecko/20110902 Thunderbird/3.1.14 In-Reply-To: <99d5e91e-983c-4b87-ba97-657ccf137521@glegroupsg2000goo.googlegroups.com> Cancel-Lock: sha1:Fv+oqGuiORmQ099lwEM91GQ9E+4= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:8080 On 16/09/2011 18:14, Peter Cheung allegedly wrote: > Dear All > how to by pass this swing limit: > Each GUI component can be contained only once. If a component is already in a container and you try to add it to another container, the component will be removed from the first container and then added to the second. Create a new component. If you want the components to share state, then you ought to put that state in a model object and make the components share the same model. State should not be stored in the view anyway. -- DF. Determinism trumps correctness.