create a simple java Application program that shows the use of FlowLayout to arrange the component at the center of the window

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

public class FltCenter extends JFrame{

    public FltCenter(){
        setLayout(new FlowLayout(FlowLayout.CENTER));
        for(int i=1;i<5;i++)
        add(new JButton(" "+i));
        setSize(500,300);
        setVisible(true);
    }
    public static void main(String args[])
    {
        FltCenter bt = new FltCenter();
        bt.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE );
    }

}