以下是引用中文名在2007-1-14 13:15:46的发言:
if (rs.next()){
//text.append("\t"+"\t"+rs.getString("room_num")+"\n");
if(rs.getString("kid").equals(jt.getText().trim())){
JOptionPane.showMessageDialog(null,"此房间已经满了");}
else
JOptionPane.showMessageDialog(null,"此房间空着");
}
改成
if (rs.next()){
//text.append("\t"+"\t"+rs.getString("room_num")+"\n");
if(rs.getString("kid").equals(jt.getText().trim())){
JOptionPane.showMessageDialog(null,"此房间已经满了");}
}
else
JOptionPane.showMessageDialog(null,"此房间空着");
看看
if (rs.next()){
//text.append("\t"+"\t"+rs.getString("room_num")+"\n");
if(rs.getString("kid").equals(jt.getText().trim())){
JOptionPane.showMessageDialog(null,"此房间已经满了");}
else
JOptionPane.showMessageDialog(null,"此房间空着");
}
改成
if (rs.next()){
//text.append("\t"+"\t"+rs.getString("room_num")+"\n");
if(rs.getString("kid").equals(jt.getText().trim())){
JOptionPane.showMessageDialog(null,"此房间已经满了");}
}
else
JOptionPane.showMessageDialog(null,"此房间空着");
看看
你上面哪儿改了哦
还有封哥,按你改了之后,还不行哦
专业源于品质