Changing JFrame components at runtime
- From: "lego_lax" <lego_lax@xxxxxxxxx>
- Date: 24 Sep 2006 05:31:59 -0700
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() of MyPanel 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? Can I invoke again initComponents() methods of
MyPanel and JFrame?
Thanks.
.
- Follow-Ups:
- Re: Changing JFrame components at runtime
- From: Andrew Thompson
- Re: Changing JFrame components at runtime
- Prev by Date: Re: JAVA TEXT AREA GUI problem
- Next by Date: Re: list of java guis
- Previous by thread: Re: JAVA TEXT AREA GUI problem
- Next by thread: Re: Changing JFrame components at runtime
- Index(es):
Relevant Pages
|
|