All pastes #751758 Raw Edit

Someone

public text v1 · immutable
#751758 ·published 2007-10-27 18:07 UTC
rendered paste body
import javax.swing.*;
public class GUI extends JFrame 
{
	public JButton ok = new JButton("OK");
	public JButton cancel = new JButton("Cancel");
	public JButton  = new JButton("Apply");
	public JButton reg = new JButton("Register");
	public JTextField user = new JTextField();
	public JTextField passw = new JTextField();
	public JLabel username = new JLabel("Username");
	public JLabel pass = new JLabel("Password");
	public JLabel lolwut = new JLabel("l0lwut");

	public GUI()
	{
		super("Cum");
 		JPanel P = (JPanel)this.getContentPane();
		P.setLayout(null);

		ok.setBounds(176, 19, 100, 25);
		cancel.setBounds(177, 60, 100, 25);
		.setBounds(178, 97, 100, 25);
		reg.setBounds(179, 134, 100, 25);
		user.setBounds(20, 75, 100, 25);
		passw.setBounds(20, 129, 100, 25);
		username.setBounds(21, 51, 100, 25);
		pass.setBounds(21, 103, 100, 25);
		lolwut.setBounds(77, 12, 100, 25);

		P.add(ok);
		P.add(cancel);
		P.add();
		P.add(reg);
		P.add(user);
		P.add(passw);
		P.add(username);
		P.add(pass);
		P.add(lolwut);

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