Problem with colors

Hi my project is a little paint program but i have problems with the colorChooser in java , for change of color , to change color, pressing the color button opens chooser color but does not change it.

Have you tried debugging your code?

Have you checked the value of javaColor? Is it non-null? What are its red, green, and blue components? Are they all what you expected?

Try to get something simpler working. Can you write an example sketch that hard-codes a Java Color and translates it to a Processing color? Then make it so the color is from a color chooser. Work your way forward in small steps like that.