怎么用多线程在网上POST到验证码显示在窗体上,几个线程同时post的到验证码存起来,然后显示在窗体上,输入完后,显示下一个,(这是post还在取验证),怎么实现,求思路 for (int i = 0; i < replys.size(); i++) {
lblImg.setIcon(new ImageIcon(replys.get(i).getImage()));
lblImg.setVisible(true);
while (txtCode.getText().length() < 4) {
}
txtCode.setVisible(true);
replys.get(i).setVerify(txtCode.getText());
SendCodeTopic codeTopic = new SendCodeTopic(replys.get(i));
}求大神,有木有参考代码,我做的不是死锁,就是闪跳验证swing窗体多线程
lblImg.setIcon(new ImageIcon(replys.get(i).getImage()));
lblImg.setVisible(true);
while (txtCode.getText().length() < 4) {
}
txtCode.setVisible(true);
replys.get(i).setVerify(txtCode.getText());
SendCodeTopic codeTopic = new SendCodeTopic(replys.get(i));
}求大神,有木有参考代码,我做的不是死锁,就是闪跳验证swing窗体多线程
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货