0
I added a frame
with several components to one container
. In another class I add to jPanel the data from container
. In this class, is there any way I can get access to the components of this container
?
Container ct3 = new Container();
ct3 = this.getContentPane();
The point is that I added all the components of the frame to the container
, But when I show these components in another class, I wish some components weren’t shown.
In the other class I have it:
painelPrincipalConfMainMenu.add(ConfUtilizador.ct3.getComponent(0));
Is there any way to do that ?
But then how do I dispose the elements of the first frame in the same way, but in the new frame ?
– Hugo Machado
Because wrong suggestion, I will remove and publish a response that can help you
– jsantos1991