Skip to content

A swing color chooser, formerly hosted on java.net

Notifications You must be signed in to change notification settings

timboudreau/colorchooser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swing Color Chooser

This is a simple one-click color chooser with a popup, developed in 1999 for NetBeans and until a few years ago, hosted on java.net. Loosely based on a lovely color chooser from KPT Bryce from the 90s.

It is used in Gephi, the graph visualization tool, Imagine, an image editor, some NetBeans Platform tutorials, and probably other projects (if you want a shout-out, submit a request).

The purpose is to make color-selection fast and easy - clicking the chooser pops up a palette, which you drag to select a color in, and it closes when the mouse button is released - so, unlike complicated color dialogs, color selection is a single gesture. Pressing combinations of modifier keys switches between a number of palettes (and different palettes can be passed to the constructor).

Screen shot

The original web site for the project is here.

Backstory

This was literally some of the first Java code I ever wrote, in 1999, as an alternate color chooser for NetBeans - a port of a Delphi component I had written in 1996 or so. Sun later acquired NetBeans, and we open sourced the code on the long-defunct (thanks, Oracle) java.net.

It is localized (what few strings there are) into English, Spanish, French, Dutch and German.

It has been used in various projects over the years, maintained (acquiring alpha palettes and clipboard support, including copy/paste HTML #-prefixed hex colors, just a couple of years ago), and is stable and solid - and to my knowledge there is nothing like it for easy, low-UI-footprint (it's just a colored swatch, no dialogs to close) color selection in Java.

About

A swing color chooser, formerly hosted on java.net

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published