Q:

How to make BorderLayout dynamic? 

I have java swing aplication where I use Borderlayout as layout.  I put elements in EAST,CENTER and WEST.  I want to change size of elements with mouse just like in NetBeans. 
For example when I move mouse on the edge of the CENTER  I need to show mouse resize cursor.  And when I drag mouse on the edge, the CENTER will change size accordingly. 
What is the best approach to do it? 

A:

You would need to use a JSplitPane.  Simply nest them in the border layout.  This is a good resource for examples.