package view;
import javax.swing.JFrame;
import javax.swing.JButton;
import java.awt.Dimension;
import java.awt.FlowLayout;
public class Tela extends JFrame {
private FlowLayout layout = null;
public Tela () {
super("Teste Flowlayout");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setPreferredSize(new Dimension(400, 200));
layout = new FlowLayout();
setLayout(layout);
Layout.setAlignment(FlowLayout.CENTER); //essa parte está dando erro
add(new JButton("botao1"));
add(new JButton("botao2"));
add(new JButton("botao3"));
add(new JButton("botao4"));
}
}