Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!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 19:07:45 +0200 Organization: A noiseless patient Spider Lines: 17 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 17:12:34 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="WrQ6TY7cZS4XmFmZxCpJlw"; logging-data="29613"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+57VP4h+7Qu8Ypz5AOCqCI" 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: Cancel-Lock: sha1:04mo8+IZL0LCoI+Pyy9MhAg+4hM= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:8082 On 16/09/2011 18:47, Peter Cheung allegedly wrote: > share the model can make two components display the same data. Except > this, i need to create two set of event to handle mouse click, it is > quite trouble. > > thanks If you have, as you should, written a view/controller class that initialises its layout, data and listeners, then the net difference between one and two of those is one instantiation and addition to a container. It sounds like the design of your mouse event handler isn't right. -- DF. Determinism trumps correctness.