主类中
while(rs.next())
{
String getuName(){
return uName;
}
void setuName(String uName){
this.uName =uName;
}
uName =rs.getInt("Users_id");
}
另一个类
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
String uName,Usex; int uID,uAge,uGrade; Date uTime;
try{
uName=jTextField1.getText();
Usex= (String) jComboBox1.getSelectedItem();
uID=Integer.parseInt(jTextField2.getText());
uAge=(Integer)jSpinner1.getValue();
uGrade=jSlider1.getValue();
uTime=(Date)jSpinner2.getValue();
}
提示有错误,实在不会弄,请指教,可以加QQ教我360073633