alirezasmr/FTSM-Registration — pull request #1 by shaoogle (2014-11-30 10:36:32+00:00)
Title: system

import java.awt.*;
import javax.swing.*;
import java.awt.event.*;

public class systems extends JFrame implements ActionListener
{
static systems ss;
JPanel panel = new JPanel();
JLabel label1 = new JLabel("Name：");
JTextField name = new JTextField();
JLabel label2 = new JLabel("password：");
JPasswordField pwd = new JPasswordField();
JButton Enter = new JButton("Enter");
JButton Exit = new JButton("Exit");

ButtonGroup bgp = new ButtonGroup();
JRadioButton stu = new JRadioButton("Inquire");
JRadioButton tch = new JRadioButton("Change");

public systems()
{
super("Log");
this.setResizable(false);

stu.setBounds(165,210,70,20);
tch.setBounds(265,210,70,20);
bgp.add(stu);
bgp.add(tch);
panel.add(stu);
panel.add(tch);
Enter.setBounds(150,250,80,20);
Exit.setBounds(270,250,80,20);
Enter.addActionListener(this);
Exit.addActionListener(this);
panel.add(Enter);
panel.add(Exit);
panel.setLayout(null);
this.add(panel);
label1.setBounds(135,130,100,25);
panel.add(label1);
name.setBounds(265,130,100,25);
panel.add(name);
label2.setBounds(135,165,100,25);
panel.add(label2);
pwd.setBounds(265,165,100,25);
panel.add(pwd);
this.setBounds(100,100,500,350);
this.setVisible(true);
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}

public void actionPerformed(ActionEvent e)
{	if(e.getSource()==Enter)
{
if(stu.isSelected())
{

}
else if(tch.isSelected())
{

}

}
else
{
System.exit(0);
}
}

public static void main(String[] args)
{
systems sys = new systems();
}
}