我吧代码发到博客上,不过我想也许会有更多的人到这个平台寻求答案,所以将链接发到这里,仅供参考!
 http://blog.sina.com.cn/s/blog_65bb68770100h4aj.html 希望资深Java swing 开发人员多多指教!