Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 1 of 1

Thread: Possible Bug in JColorChooser

  1. #1
    Join Date
    Sep 2018
    My Mood
    Thanked 38 Times in 36 Posts

    Default Possible Bug in JColorChooser

    I am not certain as to the appropriate place to post this so I will leave that up to the mods. I created the following simple app to help demonstrate the "problem" I am encountering.

    import java.awt.*;
    import javax.swing.*;
    public class ColorChooserProblem {
       JFrame f = new JFrame("Testing Color Chooser");
       public static void main(String[] args) {
    	  new ColorChooserProblem().start();
       public void start() {
    	  JColorChooser jc1 = new JColorChooser();
    	  JColorChooser jc2 = new JColorChooser();
    	  f.add(jc1, BorderLayout.NORTH);
    	  f.add(jc2, BorderLayout.SOUTH);

    1. In both panels, select CMYK and type in any valid numbers for CMYK. Both panels must have the same values.
    2. Now compare the RGB values for each panel. They should be the same.
    3. Select a single panel and reset the sliders to 0.
    4. Now re-enter the RGB values into that same panel.
    5. Switch to CMYK for both panels. The values in the panels that I see are different.

    Is this also what you see?

    I am running Java 10 on Windows 10 and my IDE is Eclipse.

    Also posted at https://stackoverflow.com/questions/...-jcolorchooser

    Last edited by jim829; April 9th, 2019 at 04:02 PM.

Similar Threads

  1. Setting Location of JColorChooser
    By gw1500se in forum AWT / Java Swing
    Replies: 2
    Last Post: April 9th, 2019, 09:59 AM
  2. nullpointerexception bug
    By Jedi khan in forum What's Wrong With My Code?
    Replies: 7
    Last Post: July 11th, 2013, 09:01 AM
  3. JColorChooser won't change text color of JLabel
    By mwardjava92 in forum AWT / Java Swing
    Replies: 1
    Last Post: April 4th, 2013, 06:37 PM
  4. [SOLVED] JColorChooser
    By thatguy in forum What's Wrong With My Code?
    Replies: 8
    Last Post: February 26th, 2013, 06:27 PM
  5. What's the bug in this code?
    By r3dApple in forum What's Wrong With My Code?
    Replies: 4
    Last Post: January 11th, 2012, 12:28 AM