public void actionPerformed(ActionEvent e)
	{
		String id = num.getText();
		if(e.getSource()==serch)
		{
			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();
				ResultSet rs = stmt.executeQuery("select * from STU where ID = '" + id + "'");
				while(rs.next())
				{
					nam.setText(rs.getString("Name"));
					if(rs.getString("Sex").equals(""))
					{
						man.setSelected(true);
					}
					else
					{
						women.setSelected(true);
					}
					clas.setText(rs.getString("Class"));
					scl.setText(rs.getString("Collage"));
				}
			}
			catch (SQLException se)
			{
				JOptionPane.showMessageDialog(s,se.getMessage());
			}
		}
	}