import java.awt.*;
import javax.swing.*;

public class FlowTest4 extends JFrame {
    String[] strings = {"Java", "is", "an", "excellent", "programming", "langauge"}; 
    JButton[] buttons = new JButton[strings.length];
    Container contentPane;
    public FlowTest4() {
        super("Center");
	contentPane = getContentPane();
	contentPane.setLayout(new FlowLayout());
	for(int i = 0; i < strings.length; i++) {
	    buttons[i] = new JButton(strings[i]);
	    contentPane.add(buttons[i]);
	}
	contentPane.remove(4); // remove "programming"
    }
    

    
   public static void main(String[] args) {
        FlowTest4 f = new FlowTest4();
	f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	f.setSize(250,150);
	f.setVisible(true);
    }
}
