I'm a high-school student who is taking java I usually don't have many problems that I cant figure out without a bit of research however my teacher insists all student use panels when building GUI's.I have no problem building them however I haven't been able to get a decent answer clarifying the purpose of putting components in a Panel
A panel is a container.
There are many other reasons for using panels, these are just a few that pop to mind