The BorderLayout class includes methods for
setting the horizontal and vertical gaps. If you want to
do anything more complicated (i.e. using Insets)
then you will need to use the GridBagLayout. You can
find out more information on all of the layouts from
the Java API documentation. If you haven't already,
download a copy of the JDK documentation and keep it handy
- you will use it a
lot.