I am new to Java and Java swing.
I need to extract only the color pane and get the color from that pane in my own window.
Basically, I want to remove other unnecessary components in the default ColorPanel. I am successful in removing the other panels and sliders. But not further.
It's difficult and requires some AWT/Swing hacks (like
Robotclass), but possible. I would not advise you to use this code, but if it's required...