-
关于JButton的问题,求教我想请问一下我在mouseClicked事件中使用了线程为什么在执行的时候那个button好像一直被按下去了直到线程执行结束啊?开始执行之前按钮是正常的,然后点击按钮,mouseClicked事件中开始执行线程,执行过程中那个button就好像一直被按着,直到线程执行结束才恢复正常,我想知道如何让按钮按下松开鼠标后就恢复正常,并执行线程啊?难道要把线程移到mouseReleased事件中CSDN0327 时间:12-11 + 阅读全文
-
eclipse安了fatjar,点击Build Fat Jar怎么没反应我已经把fatjar文件复制到eclipse中的plugins里了,右键点项目的时候,菜单中有buildfatjar这项,但是点击后没任何反应,怎么回事啊,求指教...nengwu1 时间:12-10 + 阅读全文
-
spring+ibatis2.3.4架构 ,后台更改数据后,提取不到最新数据?我在有一下两条语句我用eclipse的debug功能执行第一条语句后,暂停程序,后台修改了数据库中的数据,并提交接着执行第二条语句,怎么删除sctemplate1与sctemplate2是完全一样的记录呢,怎么没有提取到最新的记录?1.scTemplate1=scTemplateDAO.selectByPrimaryKey(scTemplate.getId());2.scTemplzhengyuepo 时间:12-10 + 阅读全文
-
问个jdom读取html的问题(深夜帮忙下吧)我的目标是读取<tr><td>something<td/><td>something<td/><td>something<td/></tr>这个是我自己写的publicvoidreadHtml(){Map<String,Object>htmls=newHashMap<a3821422 时间:12-11 + 阅读全文
-
关于FileWriter类的wirte方法...!求助!FileWriterfileout==newFileWriter("过程.txt");后面的代码中我有很多个这个结构{fileout.write("获得一分!\n"); fileout.flush();}但是过程.txt文件中:“获得一分!”总是连续的,我要的是每个“获得一分”都是一行...应该怎么办?b28743521 时间:12-11 + 阅读全文
-
基于LRU算法(最近最少使用)LinkedHashMap构造器问题publicLinkedHashMap(intinitialCapacity, floatloadFactor, booleanaccessOrder)ConstructsanemptyLinkedHashMapinstancewiththespecifiedinitialcapacity,loadfactorandorderingmlyx2007825 时间:12-10 + 阅读全文
-
郁闷,struts 1.2+PIO3.7实现excel 2007导入数据库问题大家好,小弟最近在优化原来的构架,实现支持excel2007文件的上传并将数据导入数据库,遇到的问题是struts1.2中FormFile传过来的文件流好象PIO3.7的XSSFWorkbook好象不支持,直接抛异常~action中写的方法是Listread07Excel(Inputstreamis){...}然后通过JSP页面传过来的获取的文件流实现参数的传递FormFile.gzhaofucheng2003 时间:12-09 + 阅读全文
-
mysql中能用PreparedStatement创建表吗?mysql中能用PreparedStatement创建表吗?publicstaticvoidcreateTable(){Stringstr="createtableifnotexistsstu(idintauto_incrementprimarykey,stunumbervarchar(20),namevarchar(30)notnull);";try{tangyongzhe1 时间:12-10 + 阅读全文