Professional Documents
Culture Documents
JFrame
JFrame
JFrame
*;
import javax.swing.JLabel;
import java.awt.FlowLayout;
frm1.setLayout(new FlowLayout());
frm1.add(lblNAME);
frm1.add(txtName);
frm1.add(lblAge);
frm1.add(txtAge);
frm1.add(lblAddress);
frm1.add(txtAddress);
frm1.add(lblUserName);
frm1.add(txtUserName);
frm1.add(lblPassword);
frm1.add(txtPassword);
frm1.add(btnSave);
frm1.setSize(250, 350);
frm1.setVisible(true);
frm1.setLocation(100, 100);
frm1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frm1.setResizable(false);
}