I am writing an interactive GUI but am having trouble getting each component the right size. I have tried setSize(), setBounds(), and still one component dwarfs the others. I have used these commands on a JFrame and they work fine. I try to use them on JPanels and I get no results. Is there a way to set a JPanel to a certain location and size?