1、将数据库驱动(jar包)解压缩
[img]http://b29.photo.store.qq.com/http_imgload.cgi?/rurl4_b=915372bdfca83821d18c450570c11cfbcf2c5d8e994483c30e0352a47e7b601154eaafc649b990c05c63c1471954417026fb2d8685c142070d0efacf2ccfc6ba7adadf80935cbb0ef5d7bd8f49d1e3ccdc8e4329&a=29&b=29[/img]
2、将com文件夹直接拖到项目上,如下图,拖进来后就出现com包:
[img]http://b25.photo.store.qq.com/http_imgload.cgi?/rurl4_b=915372bdfca83821d18c450570c11cfb86a1ea9cfe3a749073999175b929535406e9a90f5099a275e770d61d13e9c81b158bab23fe26d0d2452b1795fc67a713415cea5052fa9c49d1764948bde4094129bc704a&a=12&b=25[/img]
然后项目打包后即可正常运行!
[size=large]关于背景图片,程序中使用如下方法可解:this.getClass().getClassLoader().getResouce("images/tupian.jpg")[/size]
[img]http://b29.photo.store.qq.com/http_imgload.cgi?/rurl4_b=915372bdfca83821d18c450570c11cfbcf2c5d8e994483c30e0352a47e7b601154eaafc649b990c05c63c1471954417026fb2d8685c142070d0efacf2ccfc6ba7adadf80935cbb0ef5d7bd8f49d1e3ccdc8e4329&a=29&b=29[/img]
2、将com文件夹直接拖到项目上,如下图,拖进来后就出现com包:
[img]http://b25.photo.store.qq.com/http_imgload.cgi?/rurl4_b=915372bdfca83821d18c450570c11cfb86a1ea9cfe3a749073999175b929535406e9a90f5099a275e770d61d13e9c81b158bab23fe26d0d2452b1795fc67a713415cea5052fa9c49d1764948bde4094129bc704a&a=12&b=25[/img]
然后项目打包后即可正常运行!
[size=large]关于背景图片,程序中使用如下方法可解:this.getClass().getClassLoader().getResouce("images/tupian.jpg")[/size]