Set proper borderLayout

Apparently, the default layout manager for JPanels is FlowLayout which
makes things not resize properly.