{"id":28399085,"url":"https://github.com/dheid/colorpicker","last_synced_at":"2025-06-28T19:32:00.975Z","repository":{"id":56788246,"uuid":"524052248","full_name":"dheid/colorpicker","owner":"dheid","description":"A nice color picker using Java Swing that contains a visual color selection and input boxes to enter RGB and HSB values manually.","archived":false,"fork":false,"pushed_at":"2024-04-19T20:41:38.000Z","size":555,"stargazers_count":17,"open_issues_count":2,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-08T17:03:31.386Z","etag":null,"topics":["awt","desktop","gui","java-swing","multiplatform","swing","ui"],"latest_commit_sha":null,"homepage":"https://www.daniel-heid.de/open-source-projekte/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dheid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"github":["dheid"],"ko_fi":"dheid"}},"created_at":"2022-08-12T10:52:43.000Z","updated_at":"2025-04-09T10:22:20.000Z","dependencies_parsed_at":"2023-11-29T20:26:51.583Z","dependency_job_id":"249de64f-3f5b-4ffe-a2fc-47825b15befb","html_url":"https://github.com/dheid/colorpicker","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/dheid/colorpicker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dheid%2Fcolorpicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dheid%2Fcolorpicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dheid%2Fcolorpicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dheid%2Fcolorpicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dheid","download_url":"https://codeload.github.com/dheid/colorpicker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dheid%2Fcolorpicker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262484079,"owners_count":23318392,"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":["awt","desktop","gui","java-swing","multiplatform","swing","ui"],"created_at":"2025-06-01T06:39:21.355Z","updated_at":"2025-06-28T19:32:00.968Z","avatar_url":"https://github.com/dheid.png","language":"Java","funding_links":["https://github.com/sponsors/dheid","https://ko-fi.com/dheid","https://ko-fi.com/W7W3EER56"],"categories":[],"sub_categories":[],"readme":"# :art: Java Swing Color Picker Dialog\n\n[![Maven Central](https://img.shields.io/maven-central/v/org.drjekyll/colorpicker.svg?maxAge=2592000)](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.drjekyll%22%20AND%20a%3A%22colorpicker%22)\n[![Java CI with Maven](https://github.com/dheid/colorpicker/actions/workflows/build.yml/badge.svg)](https://github.com/dheid/fontchooser/actions/workflows/build.yml)\n[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/W7W3EER56)\n\nA nice color picker using Java Swing that contains a visual color selection and input boxes to enter RGB and HSB values manually:\n\n* Two color modes HSV and RGB\n* Includes an alpha selection\n* Determine color by hex code\n* Allows to select color by clicking on color wheel\n* Minimal dependencies (only SLF4J)\n* Compatible with Java versions since version 8\n* Well documented\n* Easy to use\n* Completely free and open source\n\n![Screenshot of color picker](colorpicker.png)\n\n## :wrench: Usage\n\nInclude the following dependency to your project:\n\n```xml \n\u003cdependency\u003e\n  \u003cgroupId\u003eorg.drjekyll\u003c/groupId\u003e\n  \u003cartifactId\u003ecolorpicker\u003c/artifactId\u003e\n  \u003cversion\u003e2.0.1\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nUse the class `com.bric.colorpicker.ColorPicker` as an entry point. You can easily initialize the panel using\n\n```java\nColorPicker colorPicker = new ColorPicker(true, true);\ncolorPicker.addColorListener(colorModel -\u003e System.out.println(colorModel.getColor()));\n```\n\nThis creates a color picker component with expert controls and opacity settings. If the user selects a color, the color listener will be notified.\n\n### :globe_with_meridians: Localization\n\nThe color picker supports localization. You can set the locale by passing it to the constructor:\n\n```java\nColorPicker colorPicker = new ColorPicker(true, true, Locale.FRENCH);\n// or\nColorPickerDialog.showDialog(null, Color.GREEN, Locale.FRENCH);\n```\n\nCurrently, the following languages are supported:\n- English\n- Español\n- Français\n- Deutsch\n- Português\n- Русский\n\n## :hammer: Building\n\nPlease use Maven to build and test the project.\n\n    mvn install\n\nThis will install the version to your local repository. You can now include it:\n\n```xml \n\u003cdependency\u003e\n    \u003cgroupId\u003eorg.drjekyll\u003c/groupId\u003e\n    \u003cartifactId\u003ecolorpicker\u003c/artifactId\u003e\n    \u003cversion\u003e1.4.4-SNAPSHOT\u003c/version\u003e\n \u003c/dependency\u003e\n```\n\nor Gradle with Groovy DSL:\n\n```groovy\nimplementation 'org.drjekyll:fontchooser:1.4.4-SNAPSHOT'\n```\n\nor Gradle with Kotlin DSL:\n\n```kotlin\nimplementation(\"org.drjekyll:fontchooser:1.4.4-SNAPSHOT\")\n```\n\n\n## :handshake: Contributing, Credits and History\n\nPlease see here: [Contributing](CONTRIBUTING.md)\n\nThis color picker was a part of the javagraphics project (http://javagraphics.blogspot.com), initiated by Jeremy Wood. The javagraphics project is a collection of small stand-alone projects.\n\nThe original color picker component is copyright 2011 by Jeremy Wood.\n\n## :scroll: License\n\nThis modification of the color picker is released under a BSD 3-Clause\nlicense. More details can be found here:\n \nhttps://opensource.org/licenses/BSD-3-Clause\n\n## :loudspeaker: Release Notes\n\n### 2.0.1\n\n* [Localization support](https://github.com/dheid/colorpicker/pull/55)\n\n### 1.4.8\n\n* [Illegal argument exception when color wheel is tiny](https://github.com/dheid/colorpicker/issues/51)\n\n### 1.4.5\n\nPrevent NPE on resize (https://github.com/dheid/colorpicker/issues/26)\n\n### 1.4.3 and 1.4.4\n\nFixed null-pointer exception on changing slider\n\n### 1.4.2\n\n* Introduced Lombok\n* Migrated to JUnit 5\n* Updated dependencies and plugins\n* Migrated to GitHub\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdheid%2Fcolorpicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdheid%2Fcolorpicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdheid%2Fcolorpicker/lists"}