// Collection of code snippets by Arne Vajhøj 
// (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
import java.awt.BorderLayout;
import javax.swing.JFrame;
import javax.swing.JLabel;

public class SIX14 extends JFrame {
    public SIX14() {
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        getContentPane().setLayout(new BorderLayout());
        getContentPane().add(new JLabel("N"), BorderLayout.NORTH);
        getContentPane().add(new JLabel("W"), BorderLayout.WEST);
        getContentPane().add(new JLabel("E"), BorderLayout.EAST);
        getContentPane().add(new JLabel("S"), BorderLayout.SOUTH);
        pack();
    }
    public static void main(String[] args) {
        SIX14 f = new SIX14();
        f.setVisible(true);
    }
}
