gap in Jpanel (Border Layout ) : I am trying to implement the following: 

    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.io.IOException;
    import javax.swing.JFrame;
    import javax.swing.JPanel;

    public class main {

	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		
	JFrame myFrame = new JFrame("Game");
		
		JPanel east = new JPanel();
		JPanel west = new JPanel();
		JPanel south = new JPanel();
		JPanel center = new JPanel();
				
		myFrame.setLayout(new BorderLayout());
		myFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		myFrame.setLayout(new BorderLayout());
		myFrame.add(east, BorderLayout.EAST);
		myFrame.add(west, BorderLayout.WEST);
		myFrame.add(south, BorderLayout.SOUTH);
		myFrame.add(center, BorderLayout.CENTER);
		
	
		east.setBackground(Color.YELLOW);
		west.setBackground(Color.RED);
		south.setBackground(Color.BLUE);
		center.setBackground(Color.GREEN);
		
		myFrame.pack();
		myFrame.setVisible(true);
	
	   }

    }



I got this 
 [enter image description here][1]

But I want the east and west have bigger width 
When I use:

    east.setPreferredSize(new Dimension(250, 1000));

I get gaps between the panels 

What am I doing wrong ? 

Thanks for your time 


  [1]: https://i.stack.imgur.com/Ck7za.png