java
ZRnQ
这个作者很懒,什么都没留下…
展开
-
获取gradle项目的所有依赖jar包
获取gradle项目的所有依赖jar包 在项目的build.gradle文件中,添加以下插件 plugins { id 'java' } 以及下面的任务 task copyJars(type: Copy) { from configurations.runtime into 'lib' // 目标位置 } 运行copyJars任务即可把所有依赖包复制到项目文件夹中的lib文件夹下。 参考文章 ...转载 2021-02-07 10:42:59 · 2278 阅读 · 0 评论 -
JEditorPane刷新当前html页面
JEditorPane刷新当前html页面 在使用JEditorPane显示html页面时,当页面出现变化之后,我们想要刷新JEditorPane的显示,因此我尝试使用了以下的方式: jEditorPane.setPage("index.html");//一开始显示的页面 //对index.html做出更改... jEditorPane.setPage("empty.html");//empty.html是本地的一个空白页面 jEditorPane.revalidate(); jEditorPane.s原创 2020-05-18 10:34:10 · 363 阅读 · 0 评论