All pastes #748207 Raw Edit

Mine

public text v1 · immutable
#748207 ·published 2007-10-24 17:37 UTC
rendered paste body
import javax.swing.*;
public class GUI extends JFrame 
{
public static void main(String[] args) {
	public JButton ok = new JButton("Ok");
	public JButton cancel = new JButton("Cancel");
	public JButton apply = new JButton("Apply");
	public JButton reg = new JButton("Register");
	public JTextArea usr = new JTextArea();
	public JTextArea psw = new JTextArea();
	public JTextArea Account_management = new JTextArea();
	public JLabel user = new JLabel("Username");
	public JLabel pass = new JLabel("Password");
	public JLabel create = new JLabel("Create account");

	public GUI()
	{
		super("School");
 		JPanel P = (JPanel)this.getContentPane();
		P.setLayout(null);
		JScrollPane JSP0 = new JScrollPane(usr);
		JScrollPane JSP1 = new JScrollPane(psw);
		JScrollPane JSP2 = new JScrollPane(Account_management);

		ok.setBounds(180, 19, 100, 25);
		cancel.setBounds(180, 82, 100, 25);
		apply.setBounds(180, 51, 100, 25);
		reg.setBounds(24, 48, 100, 25);
		JSP0.setBounds(24, 129, 100, 25);
		JSP1.setBounds(24, 188, 100, 25);
		JSP2.setBounds(175, 352, 100, 25);
		user.setBounds(25, 101, 100, 25);
		pass.setBounds(24, 161, 100, 25);
		create.setBounds(24, 25, 100, 25);

		P.add(ok);
		P.add(cancel);
		P.add(apply);
		P.add(reg);
		P.add(JSP0);
		P.add(JSP1);
		P.add(JSP2);
		P.add(user);
		P.add(pass);
		P.add(create);

		this.setVisible(true);
		this.setDefaultCloseOperation(EXIT_ON_CLOSE);
		this.setSize(300, 300);
		this.setResizable(true);
	}
}