I've been trying to create a custom JGoodies binding converter with no luck. Currently my model contains properties that are all simple types (strings, integers, etc). Everything is setup such that when a property changes the corresponding JLabel in my GUI changes. Okay...no problem.
But now I want to bind a custom object, not just a
string or integer. So, for example I have something like the following:
My current working model class:
But now I'm trying to do something like:
I've thought that I would have to develop a custom converter (extending the com.jgoodies.binding.value.AbstractConverter class) that takes my custom object and converts it into a string representation because I then have:
but this gives me an exception:
Can anyone help?
[ October 26, 2005: Message edited by: David Irwin ]