Professional Documents
Culture Documents
Registration
Registration
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.ButtonGroup;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JRadioButton;
import javax.swing.JTextField;
b=new JButton("Submit");
b.setBounds(80,280,80,30);
add(b);
b.addActionListener(this);
b1=new JButton("Cancel");
b1.setBounds(170,280,80,30);
add(b1);
b1.addActionListener(this);
@Override
public void actionPerformed(ActionEvent e) {
// TODO Auto-generated method stub
if(e.getSource()==b)
{
new login();
//this.dispose();
}
else
if(e.getSource()==b1)
new Registration();
}