Re: Changing JFrame components at runtime
- From: "Andrew Thompson" <andrewthommo@xxxxxxxxx>
- Date: 24 Sep 2006 19:42:45 -0700
lego_lax wrote:
OK - perhaps for the sake of clarity, it might have beenItalian. It means GridPanel
better to refer to it by its actual (italian?) then put
in brackets your best translation (PanelGrill?).
I suspected your translation would be better than my
tranlsation.. OK "Google Tranlsate's translation". ;-)
....
I solved removing old panel and constructing a new one with right
numbers of components.
Glad you sorted it.
I am not sure if that is the best solution but it works.
I am still not sure of your entire requirement (some
GUI's would be better suited to a CardLayout - for
example, if you need the earlier panels again, you
can 'flip' to them very quickly), but removing old
components and adding new ones is a common
approach.
Don't forget to call validate() after a remove/add.
Andrew T.
.
- Follow-Ups:
- Re: Changing JFrame components at runtime
- From: lego_lax
- Re: Changing JFrame components at runtime
- References:
- Changing JFrame components at runtime
- From: lego_lax
- Re: Changing JFrame components at runtime
- From: Andrew Thompson
- Re: Changing JFrame components at runtime
- From: lego_lax
- Re: Changing JFrame components at runtime
- From: Andrew Thompson
- Re: Changing JFrame components at runtime
- From: lego_lax
- Changing JFrame components at runtime
- Prev by Date: Re: Changing JFrame components at runtime
- Next by Date: Re: Changing JFrame components at runtime
- Previous by thread: Re: Changing JFrame components at runtime
- Next by thread: Re: Changing JFrame components at runtime
- Index(es):
Relevant Pages
|