java - JPanels appear to go off the frame? -
i working on assignment "of sorts" not school assignment. having said that, ideas great. i using windowbuilder in eclipse , have created basic form. have used nested jpanel components on border layout create it. reason, panels appear though spilling on edges of jframe. have frame dimensions set (500, 400) , panels various sizes, none greater 400 wide. code: package swingassignment; import java.awt.dimension; import java.awt.eventqueue; import javax.swing.jframe; import com.jgoodies.forms.layout.formlayout; import com.jgoodies.forms.layout.columnspec; import com.jgoodies.forms.layout.rowspec; import java.awt.gridbaglayout; import javax.swing.boxlayout; import net.miginfocom.swing.miglayout; import java.awt.borderlayout; import javax.swing.jpanel; import java.awt.flowlayout; import javax.swing.borderfactory; import javax.swing.jcombobox; import javax.swing.jtextfield; import javax.swing.jtextarea; import java.awt.component; import java.awt.gridbagconst