private void setRGBColor(Color color)
        {
            int red = color.getRed();
            int green = color.getGreen();
            int blue = color.getBlue();
            
            boxRed.setForeground(new Color(red, 0, 0));
            boxGreen.setForeground(new Color(0, green, 0));
            boxBlue.setForeground(new Color(0, 0, blue));
            
            if (sliderRed.getValue() != red)
            {
                sliderRed.setValue(red);
            }
            if (sliderGreen.getValue() != green)
            {
                sliderGreen.setValue(green);
            }
            if (sliderBlue.getValue() != blue)
            {
                sliderBlue.setValue(blue);
            }
        }