摘要:
最近做java swing程序在模拟httprequest请求的时候出现了这个错误java.net.SocketException: Software caused connection abort: recv failed显示是在connection在获得con.getInputStream()时随机出现这个exception,最后我感觉是 16行把输出流关闭了,这个时候server会认为连接已断开,于是该把16行放到27行,不知道对不对。 1 HttpURLConnection con = (HttpURLConnection) url.openConnection(); 2 ... 阅读全文
摘要:
If you have several JFrames open and you close one that has EXIT_ON_CLOSE it will close all the JFrames and exit the app.If you close one that has DISPOSE_ON_CLOSE only that oneJFramewill be closed.If you only have oneJFramethere isn't a real difference unless you have other non-deamon threads r 阅读全文