Open SKeeneCode opened 3 years ago
Hi, there is a workaround for this. try the following code snippet
JFXColorPicker picker = new JFXColorPicker();
picker.setManaged(false);
JFXButton btn = new JFXButton("Show");
btn.setOnAction((action) -> picker.show());
root.getChildren().addAll(picker, btn);
I have a treeview holding many colored labels. I want to be able to launch the color picker dialog when I click on these controls and bind the color picker value to my controls background:
I can launch the dialog itself easy enough (using TornadoFX here):
But I have no way as far as I can tell, to access the value property so I can get the color result (infact, launching the dialog like this then exiting it causes a NPE).
Is it possible to get around this?