Show Color Name in label
<p>Could anyone explain to me how can i show in a label, which color is being used for certain task.</p>

<p>Not to share whole code, here is what i basicly want to do.</p>

<pre><code>  JColorChooser cc = new JColorChooser();
   Color c = cc.showDialog(rootPane, null, null);      
   L1.setText((String)(c.toString()));`
</code></pre>

<p>I have a button, that shows Color Chooser Dialog, i pick a color, and the only thing i want to is to print out color name to Label.
How ever this does not work, since i get "java.awt.Color[r=...g=...b=...]"</p>

<p>Maybe this is not possible, i am using default color chooser, should i create my own, and define color names alone ?</p>