Help with adding a Container within a Container
How do i add a Container to a Container?
I've been searching the web for well over an hour now, and i still haven't found anything that relates to my problem. I already understand i can't have multiple layouts in a Container, but i also understand that pane.add accepts Components and Container is part of the Component class.
I'm currently working on an applet that is going to add various components depending on the setting (whatever the user chooses from the ComboBox). Right now i'm just testing how to get multiple containers in a container, but for every container that doesn't have = getContentPane() wont show up on the screen. Also, if i use getContentPane() on multiple panes, i get an error "java.lang.IllegalArgumentException: adding container's parent to itself". ...and i dont know if it makes a big difference but i'm using .setLayout(null) on all the containers.
What am i missing to get these other Containers into the main Container?