public void actionPerformed(ActionEvent e)
	{
		if(e.getSource()==addmsg)
		{
			String sex;
			if(man.isSelected())
			{
			    sex="";
			}
			else
		    {
			    sex="Ů";
		    }
			try
			{
				Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
			}
			catch (ClassNotFoundException ce)
			{
				JOptionPane.showMessageDialog(s,ce.getMessage());
			}
			try
			{
				Connection con = DriverManager.getConnection("jdbc:odbc:sysdb","sa","");
				Statement stmt = con.createStatement();
				int a = stmt.executeUpdate("insert into STU(ID , Pwd , Name , Sex , Class , Collage)values('"+num.getText()+"','"+"12345678','"+nam.getText()+"','"+sex+"','"+clas.getText()+"','"+scl.getText()+"')");
				if(a==1)
				{
					JOptionPane.showMessageDialog(s,"ѳɹ");
				}
				else
				{
					JOptionPane.showMessageDialog(s,"ʧ");
				}
				stmt.close();
			}
			catch (SQLException se)
			{
				JOptionPane.showMessageDialog(s,se.getMessage());
			}
		}
		else
		{
			num.setText("");
			nam.setText("");
			clas.setText("");
			scl.setText("");
			num.requestFocus();
		}
	}