Search operations are perform by employee id wise, employee name by using mid function and all employees. So take three RadioButton and By id and by name and All that RadioButton Text. Employee id take JComboBox and by name use the JTextField control. First code state the Dynamic connection and than JcomboBox fill by employee id for search operation and then user select any employee id in JComboBox ActionPerform event fire and search record in JTable. and Employee name by same process by select character by character using Mid function KeyReleasted event. All RadioButton ActionPerform event call the user define method fillgrid.