Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #8080

Re: how to bypass this swing limit

From Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: how to bypass this swing limit
Date 2011-09-16 18:31 +0200
Organization A noiseless patient Spider
Message-ID <j4vtt8$cnv$1@dont-email.me> (permalink)
References <99d5e91e-983c-4b87-ba97-657ccf137521@glegroupsg2000goo.googlegroups.com>

Show all headers | View raw


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.

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

how to bypass this swing limit Peter Cheung <cmk128@gmail.com> - 2011-09-16 09:14 -0700
  Re: how to bypass this swing limit Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2011-09-16 18:31 +0200
    Re: how to bypass this swing limit Peter Cheung <cmk128@gmail.com> - 2011-09-16 09:47 -0700
      Re: how to bypass this swing limit Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2011-09-16 19:07 +0200
      Re: how to bypass this swing limit David Lamb <dalamb@cs.queensu.ca> - 2011-09-16 16:15 -0400
  Re: how to bypass this swing limit Roedy Green <see_website@mindprod.com.invalid> - 2011-09-16 14:48 -0700
    Re: how to bypass this swing limit Peter Cheung <cmk128@gmail.com> - 2011-09-19 03:29 -0700

csiph-web