This is B4J only. Took me a while to find it so thought this might help someone else. Private FontColor As ColorPicker . . Dim MyColor as int = xui.PaintOrColorToColor(FontColor.SelectedColor)