{"id":21418670,"url":"https://github.com/KDesp73/SwingPaint","last_synced_at":"2025-07-14T05:31:34.141Z","repository":{"id":126551496,"uuid":"598162963","full_name":"KDesp73/Swing-Themes-Library","owner":"KDesp73","description":"Java Swing Themes Library","archived":false,"fork":false,"pushed_at":"2023-11-27T20:25:11.000Z","size":789,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-11-28T19:47:21.150Z","etag":null,"topics":["java","swing","swing-components","themes"],"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/KDesp73.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-02-06T14:36:49.000Z","updated_at":"2023-11-28T19:47:21.150Z","dependencies_parsed_at":"2023-11-27T19:53:24.556Z","dependency_job_id":null,"html_url":"https://github.com/KDesp73/Swing-Themes-Library","commit_stats":null,"previous_names":[],"tags_count":2,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KDesp73%2FSwing-Themes-Library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KDesp73%2FSwing-Themes-Library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KDesp73%2FSwing-Themes-Library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KDesp73%2FSwing-Themes-Library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KDesp73","download_url":"https://codeload.github.com/KDesp73/Swing-Themes-Library/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225952187,"owners_count":17550509,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["java","swing","swing-components","themes"],"created_at":"2024-11-22T19:23:21.568Z","updated_at":"2025-07-14T05:31:34.133Z","avatar_url":"https://github.com/KDesp73.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwingPaint\n\nA user-friendly library that simplifies coloring and theming,\nmaking it easy to integrate into existing desktop applications.\n\n## Dependency\n\n[Maven Central](https://central.sonatype.com/artifact/io.github.kdesp73/SwingPaint)\n\n### Maven\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.github.kdesp73\u003c/groupId\u003e\n    \u003cartifactId\u003eSwingPaint\u003c/artifactId\u003e\n    \u003cversion\u003e1.1.2\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### Gradle\n\n```text\nimplementation 'io.github.kdesp73:SwingPaint:1.1.2'\n```\n\n## Usage\n\n```java\n@PaintAll(label = \"label\", type = JLabel.class)\n@PaintAll(label = \"button\", type = JButton.class)\npublic class MainFrame extends JFrame {\n\n\tprivate JButton button1;\n\n\t@Paint(label = \"specialbutton\")\n\tprivate JButton button2;\n\n\t@Paint(label = \"myspinner\")\n\tprivate JSpinner spinner1;\n\n\tprivate JLabel label1;\n\tprivate JLabel label2;\n\tprivate JLabel label3;\n\n\tMainFrame() {\n\t\tinitComponents();\n\n\t\tTheme theme = new Theme(\"light\");\n\t\ttheme.apply(this);\n\t}\n}\n\n```\n\n### Theme file\n\nFile path: `src/main/resources/themes/light.properties`\n\n```properties\nbutton.bg = #282828\nbutton.fg = #FFFFFF\n\nspecialbutton.bg = #FF00FF\n\nmyspinner.bg = #282828\nmyspinner.fg = #FFFFFF\nmyspinner.border.color = #000000\nmyspinner.button.bg = #FF00FF\nmyspinner.textfield.bg = #92AB01\nmyspinner.textfield.fg = #FFEEFF\n\nlabel.fg = #FFDDFF\n```\n\n## Contributing\n\nContributions are always welcome!\n\nSee [Contributing.md](https://github.com/KDesp73/Swing-Themes-Library/blob/main/CONTRIBUTING.md) for ways to get started.\n\nPlease adhere to this project's [Code of Conduct](https://github.com/KDesp73/Swing-Themes-Library/blob/main/CODE_OF_CONDUCT.md).\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKDesp73%2FSwingPaint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FKDesp73%2FSwingPaint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKDesp73%2FSwingPaint/lists"}