I currently bound some proerties of an object (which are objects themselves) to a JComboBox, using a ValueHolder. Some properties allow null values in the database and now I'm stuck on trying to insert a representation of such a "null value" into the ValueModel/ComboBox. 'null' itself is not allowed and I can't think of any other representation for it.
I searched the whole forum but couln't find a hint on how to do it (or just don't see the wood for the trees...)
List<User> users = userManager.getUsers();
//users.add(0, null); // does not work, what else might be possible?
ValueHolder vhUsers = new ValueHolder(users);
tfb.add(sbf.createBoundComboBox("userAccount", vhUsers, "username"));