Re: Changing JFrame components at runtime
- From: "Andrew Thompson" <andrewthommo@xxxxxxxxx>
- Date: 24 Sep 2006 05:43:38 -0700
lego_lax wrote:
In my JFrame I have a JPanel's extension class with a 2-dimensional
array of 3X3 JLabels.
This array is, of course, created in initComponents()
Which IDE are you (mis)using?
...of MyPanel
RenderPanel, ContentArea or LabelArrayPanel are
all better names for this than MyPanel - mostly
because it makes it sound as if it were written by
a 2 yr old in the 'I, me, mine!' phase.
...class.
I've put a menu item in which user can change the dimension of JLabels'
grid.
If, e.g., the user chooses 4 then MyPanel should change that grid to a
4x4 array of JLabels.
How can I do that?
CardLayout, JTabbedPane or removing and re-adding the
components might all work in particular situations.
...Can I invoke again initComponents() methods of
MyPanel and JFrame?
I don't know. What does your IDE say? It sounds
like it is writing the code.
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
- Changing JFrame components at runtime
- Prev by Date: Re: list of java guis
- Next by Date: The PluginChat Project
- Previous by thread: Changing JFrame components at runtime
- Next by thread: Re: Changing JFrame components at runtime
- Index(es):
Relevant Pages
|
|