Can't I add containers into containers? What's wrong here?
:smash: Hey again. I am trying to add 3 JPanels inside another, which one is added to another one, which is added to the Applet. The code is the next one:
container = new JPanel();
container1 = new JPanel(new GridLayout(0,3,5,0));
container2 = new JPanel(new GridLayout(5,2,0,0));
container3 = new JPanel(new GridLayout(6,2,0,0));
container4 = new JPanel(new GridLayout(3,2,0,0));
Then, I add components to container2, 3 and 4. The problem is that I can't see anything on the screen related to the JPanels. Is there anything ill-posed ? Thanks.