求教:重新编译过的文件不能被替换!

liyuxiang_lyx 2003-08-28 05:43:54
我在一个Applet程序中与数据库连接,将数据库中的值赋到一个数组中,在文本框中显示某字段的值如a[2][1].可是我换成要显示a[2][2]时,文本框中显示的仍是a[2][1]的值,请问各位大侠,这是怎么回事啊!
...全文
48 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
liyuxiang_lyx 2003-08-28
  • 打赏
  • 举报
回复
各位高手请指教,会不会跟动态链接有关?
liyuxiang_lyx 2003-08-28
  • 打赏
  • 举报
回复
当然保存了
String DBurl="jdbc:odbc:rule";
try {
Class.forName("com.ms.jdbc.odbc.JdbcOdbcDriver");
}
catch(java.lang.ClassNotFoundException ex) {};
try {
con=DriverManager.getConnection(DBurl,"sa","sa");
stmt=con.createStatement();
String search="select Mkey,MkeyValue0,MkeyValue1,MkeyValue2,MkeyValue3 from mouth where id="+i;
re=stmt.executeQuery(search);
while(re.next()) {
mouthKey[i]=re.getFloat("Mkey");
mouthKeyValue[i][0]=re.getFloat("MkeyValue0");
mouthKeyValue[i][1]=re.getFloat("MkeyValue1");
mouthKeyValue[i][2]=re.getFloat("MkeyValue2");
mouthKeyValue[i][3]=re.getFloat("MkeyValue3");
i++;
search="select Mkey,MkeyValue0,MkeyValue1,MkeyValue2,MkeyValue3 from mouth where id="+i;
re=stmt.executeQuery(search);
}
}
catch(SQLException ex) {}
finally {
try
{ con.close(); }
catch(SQLException SE) { }
}

}
public void actionPerformed (ActionEvent e) {
String buttonName=((Button)e.getSource()).getLabel();
if("全 局 浏 览".equalsIgnoreCase(buttonName)) {
time=System.currentTimeMillis();
audioTime.setValue(time/1000+0.5);
key.setValue(mouthKey);
keyValue.setValue(mouthKeyValue);
loop.setValue(true);
text.setText(new Float(mouthKeyValue[i-3][2]).toString());
}
}
}
lightarrow 2003-08-28
  • 打赏
  • 举报
回复
给个代码
看看
weizhihui 2003-08-28
  • 打赏
  • 举报
回复
有没有保存?

62,614

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧