You could use a GridBagLayout
to achieve this, but it might be eaiser to simple use a BorderLayout
, placing the title in the NORTH
position and placing another panel with the fields on it, using a GridLayout
in the CENTER
position.
Of course, the final result will come down to what you want.
Have a look at A Visual Guide to Layout Managers for some more ideas and don't be afraid to use compound layouts