A Java Swing color picker built with FlatLaf and MigLayout.
Add the dependency
<dependency>
<groupId>io.github.dj-raven</groupId>
<artifactId>swing-color-picker</artifactId>
<version>1.0.0</version>
</dependency>To get the latest updates before the release, you can use the snapshot version from Sonatype Central
<repositories>
<repository>
<name>Central Portal Snapshots</name>
<id>central-portal-snapshots</id>
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
</repository>
</repositories>Add the snapshot version
<dependency>
<groupId>io.github.dj-raven</groupId>
<artifactId>swing-color-picker</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>// create color picker object
ColorPicker colorPicker = new ColorPicker();
// create event color changed
colorPicker.addColorChangedListener((color, event) -> {
// color changed
});Color color = ColorPicker.showDialog(this, "Pick Color", Color.WHITE);
if (color != null) {
// color selected
}