JGoodies « JTextField « Java Swing Q&A





1. jgoodies binding: using a JTextField with a formatted number?    stackoverflow.com

I am trying to bind a JTextField to a bean's field that is a double using JGoodies Binding:

JTextField myJTextField = ...
BeanAdapter adapter = ...
Bindings.bind(myJTextField,
ConverterFactory.createStringConverter(adapter.getValueModel("amplitude"),
        ...