Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
I have multiple other ComboBox which store types other than Suppliers and they all work fine
Yosuf Ibrahim wrote:I am still stuck on this guys
Lou Hamers wrote:FX_Utilities.filteredComboBoxManager() - no code, not sure what this is doing.
Lou Hamers wrote:
Is this "Supplier" the standard Java functional interface Supplier, or your own type? You probably want to use a type of your own as your Combo Box item type, and implement toString(); it could implement the Supplier interface too, if useful. Also/or this might be fixed by setting a cell factory on the Combo Box. Basically the CB needs to know how to render the items it's listing - that's not always "free" functionality.
If you want a for-certain answer you may need to add a complete example starting from something like this so we can see exactly what you're seeing:
I have multiple other ComboBox which store types other than Suppliers and they all work fine
Might have started to answer your own question there.
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
Lou Hamers wrote:
Yosuf Ibrahim wrote:I am still stuck on this guys
Yeah not sure where the other ranchers are lately. Usually some of the others will pop into this remote frontier JavaFX ranch to see if I'm still alive living all alone out here. Sometimes the native code tribes get restless and come around looking for trouble... angry folk, they all still use C and C++. Guess I can't blame them with us VM-based ranchers moving in on their territory...
Education won't help those who are proudly and willfully ignorant. They'll literally rather die before changing.
Yosuf Ibrahim wrote:
Supplier class is not the standard java, it is my own. I tried to recreate a complete example of what is happening in a separate project but I am not getting the same error anymore which is even more confusing since all I did different is instead of pulling the Supplier from the database I created them in the Main class, which probably means there is something else. I will try to read from the database in my temp project as well and see if I get the same results or not
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
There is no greater crime than stealing somebody's best friend. I miss you tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|