private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
try
{
while(rs.next())
{
exx = rs.getInt("ID");
exxx = Integer.toString(exx);
if( empid.getText().equals(exxx))
{
String names = rs.getString("NAME");
ename.setText(names);
} break;
}
}
catch (SQLException err)
{
JOptionPane.showMessageDialog(null, err.getMessage());
}
}