//Flowlayout, med nästade paneler

import java.awt.*; 
import javax.swing.*; 

public class VisaBorderLayout3 extends JFrame { 


    public VisaBorderLayout3() { 

	setTitle("Visa BorderLayout 3");
	
	JPanel center = new JPanel();

	center.setLayout(new BorderLayout(5, 10));

	
	center.add("East", new JButton("Öster"));
	center.add("South", new JButton("söder"));
	center.add("West",  new JButton("väster"));
	center.add("North",  new JButton("norr"));
	center.add("Center", new JButton("mitten"));


	getContentPane().setLayout(new BorderLayout(5, 10));
	
	getContentPane().add("East", new JButton("Öster"));
	getContentPane().add("South", new JButton("Söder"));
	getContentPane().add("West",  new JButton("Väster"));
	getContentPane().add("North",  new JButton("Norr"));
	getContentPane().add("Center", center);
	setDefaultCloseOperation(EXIT_ON_CLOSE) ;
    } 
    
    public static void main(String [] args) { 
	VisaBorderLayout3 window = new VisaBorderLayout3();
	window.setSize(400,200);
	window.setVisible(true);
    } 
}
