{"id":21991437,"url":"https://github.com/janix520/java-swing-template","last_synced_at":"2026-05-06T08:31:25.886Z","repository":{"id":246011762,"uuid":"819810623","full_name":"Janix520/Java-Swing-Template","owner":"Janix520","description":"java的gui开发快速模版，支持jdk14+，maven构建，支持一键打包为exe、dmg等","archived":false,"fork":false,"pushed_at":"2024-06-25T09:50:40.000Z","size":70,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-13T16:33:58.385Z","etag":null,"topics":["gui","java","javafx","package","swing"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Janix520.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-06-25T08:43:34.000Z","updated_at":"2024-06-25T09:50:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"450d151c-8d71-4be2-9413-e836b0eaeea2","html_url":"https://github.com/Janix520/Java-Swing-Template","commit_stats":null,"previous_names":["janix520/java-swing-template"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Janix520/Java-Swing-Template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Janix520%2FJava-Swing-Template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Janix520%2FJava-Swing-Template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Janix520%2FJava-Swing-Template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Janix520%2FJava-Swing-Template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Janix520","download_url":"https://codeload.github.com/Janix520/Java-Swing-Template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Janix520%2FJava-Swing-Template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32684593,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T02:33:58.958Z","status":"ssl_error","status_checked_at":"2026-05-06T02:33:39.611Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gui","java","javafx","package","swing"],"created_at":"2024-11-29T20:09:24.033Z","updated_at":"2026-05-06T08:31:25.881Z","avatar_url":"https://github.com/Janix520.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Java-Swing-Template\n- java的gui开发快速模版，支持jdk14+，maven构建，支持一键打包为exe、dmg等\n- 当前使用的jdk17，理论上jdk14+都支持\n- 采用模块化，支持一键打包生成很小的exe（目前20M左右）\n- 采用了idea开发工具一样的主题，支持明亮和暗黑（再也不用担心java的swing丑啦）\n- maven构建\n    \n---\n\n![LOGO](./src/main/resources/com/rocoplayer/app/icon/icon.png)\n\n# 介绍\n\n- [JavaFX版本请看这里](https://gitee.com/52jian/JavaFX-Template-Native)\n\n# 打包\n- 绿色版 mvn clean package exec:exec@jlink exec:exec@image\n- 安装包 mvn clean package exec:exec@jlink exec:exec@installer\n\n- 注意事项，修改pom.xml中javahome路径以及名称\n\n```\n    !--JAVA_HOME路径--\u003e\n    \u003cjavahome.path\u003eD:/myProgram/jdk-17.0.7\u003c/javahome.path\u003e\n    \u003c!-- 打包、镜像 统一名称 --\u003e\n    \u003cpkg.imagename\u003eAPP\u003c/pkg.imagename\u003e\n    \u003c!--厂商 --\u003e\n    \u003cpkg.vendor\u003exxx有限公司\u003c/pkg.vendor\u003e\n    \u003c!-- 描述 --\u003e\n    \u003cpkg.description\u003eJava-Swing-APP-Demo\u003c/pkg.description\u003e\n    \u003c!-- 版权 --\u003e\n    \u003cpkg.copyright\u003erocoplayer.com\u003c/pkg.copyright\u003e\n    \u003c!-- 版本号 --\u003e\n    \u003cpkg.version\u003e1.0.0\u003c/pkg.version\u003e\n```\n\n```\n\n如需要打包MAC，自行将\n\u003cargument\u003e-t\u003c/argument\u003e\n\u003cargument\u003eexe\u003c/argument\u003e\n改成需要的格式，参考jdk的jpackage支持的打包格式\n```\n\n\n- 启动应用 `.\\target\\nativeBuild\\*.exe`\n\n# 项目配置（app.properties）\n\n```properties\ntitle=Java-Swing-Template\nicon=icon/icon.png\nstage.width=640\nstage.height=480\nstage.resizable=true\n```\n\n\n# 项目截图\n![截图](./screenshot/01.jpg)\n\n# 参与贡献\n\n1.  Fork 本仓库\n2.  新建 Feat_xxx 分支\n3.  提交代码\n4.  新建 Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanix520%2Fjava-swing-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanix520%2Fjava-swing-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanix520%2Fjava-swing-template/lists"}