import java.awt.*;
import javax.swing.*;
public class Bank {
public static void main(String [] args) {
JFrame frame = new JFrame();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setLayout(new FlowLayout());
frame.setSize(new Dimension(300, 159));
frame.setTitle("Login");
JButton login = new JButton();
login.setText("Login");
frame.setLayout(new BorderLayout());
JPanel north = new JPanel(new GridLayout(3, 3));
north.add(new JLabel ("Username: "));
north.add(new JTextField());
north.add(new JLabel ("Password: "));
north.add(new JTextField());
north.add(new JLabel (""));
north.add(login);
login.addActionListener(new login());
frame.add(north, BorderLayout.NORTH);
frame.setVisible(true);
}
}