Skip to content
Advertisement

Tag: color-picker

How to set pane colour from colour picker

I have some code, in javafx, that has a pane that works like a paint canvas. I need to be able to fill the background color of the pane from a color picker. Currently I have a Color variable that gets the color chosen from the color picker and I try to set it to my Pane (named canvas) as

Advertisement