I want to arrange components as shown in image. I can do this by using gridbaglayout but I want to do this using borderlayout. I tried it but could not achieve what I wanted. so please guide me here.
The black rectangles here are components like JPanel, Button etc.

If you want to do it only with BorderLayout, you need to use 2 BorderLayout. If you cannot use 2 layouts, then you are stuck with GridBagLayout.
This is a demonstration of what I am telling: