Spike Baylor
11/26/2018, 5:29 PMSpike Baylor
11/26/2018, 5:31 PMcarlw
11/26/2018, 5:33 PMcarlw
11/26/2018, 5:35 PMSpike Baylor
11/26/2018, 5:35 PMedvin
11/26/2018, 5:37 PMindexOf()
calls, which would return -1 for null
. @thomasnield Maybe you can create a custom subclass of your domain object that means null
? If you have Customer
, then add class NullCustomer : Customer
?abhinay
11/26/2018, 5:38 PMnull
selection was always allowed in ComboBoxedvin
11/26/2018, 5:38 PMedvin
11/26/2018, 5:39 PMnull
to represent one of the items 🙂abhinay
11/26/2018, 5:41 PMnull
and still set the value of ComboBox to null
edvin
11/26/2018, 5:41 PMSpike Baylor
11/26/2018, 5:43 PMSpike Baylor
11/26/2018, 5:43 PMedvin
11/26/2018, 5:43 PMedvin
11/26/2018, 5:46 PMcarlw
11/26/2018, 5:46 PMedvin
11/26/2018, 5:47 PMthomasnield
11/26/2018, 6:00 PMthomasnield
11/26/2018, 6:00 PMChoiceBox
right now. Never used it beforethomasnield
11/26/2018, 6:04 PMChoiceBox
seems to work great for now. But @abhinay I'm glad to see the issue was fixed in JavaFX 9.carlw
11/26/2018, 6:04 PMcarlw
11/26/2018, 6:05 PMedvin
11/26/2018, 6:06 PMedvin
11/26/2018, 6:06 PMthomasnield
11/26/2018, 6:10 PMComboBox
I would have a tiny eraser button or something next to it. But for now, yes the ChoiceBox
is a good workaroundthomasnield
11/26/2018, 6:24 PMthomasnield
11/26/2018, 6:24 PMthomasnield
11/26/2018, 6:24 PMthomasnield
11/26/2018, 6:25 PMcarlw
11/26/2018, 6:26 PM