I added a frame
with multiple components to a container
. In another class I add the container
data to jPanel. In this class, is there any way I can access the components of this container
?
Container ct3 = new Container();
ct3 = this.getContentPane();
The point is that I've added all the frame components to container
, but when I show those components in another class, I'd like some components not to be shown.
In the other class I have this:
painelPrincipalConfMainMenu.add(ConfUtilizador.ct3.getComponent(0));
Is there any way to do this?