The background color for drawing is black. There is nothing wrong in the previous case.
If yoy mean there is a gap between top panel and buttom panel.
It is because you add the top panel to north and another panel to south for border layout.
It will be better if you change the top panel to "Center" instead of "Up" position. (right click at top panel and select change it's position).