- Joined
- Jul 9, 2015
- Messages
- 1
- Reaction score
- 0
private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {
String name;
name = jTextField1.getText();
int i;
for(i=0;i<std.length;++i)
{
if(std.getName().equals(name))
{
jTextField2.setText(name);
jTextField3.setText(((Student)std).calcYob());
jTextField4.setText(((Student)std).calcAge());
jTextField5.setText(((Student)std).calcGender());
jTextField6.setText(((Student)std).calcBmi());
break;
}
}
}
String name;
name = jTextField1.getText();
int i;
for(i=0;i<std.length;++i)
{
if(std.getName().equals(name))
{
jTextField2.setText(name);
jTextField3.setText(((Student)std).calcYob());
jTextField4.setText(((Student)std).calcAge());
jTextField5.setText(((Student)std).calcGender());
jTextField6.setText(((Student)std).calcBmi());
break;
}
}
}