1

I have done binding with ints and longs with no probelems. I just use BasicComponentFactory.createIntegerField or LongField. There is no such thing for floats or doubles. Is there a way to do bind these primitives?

smuggledPancakes
  • 9,881
  • 20
  • 74
  • 113

1 Answers1

2
ValueModel valueModelxField = adapter.getBufferedModel("x");
xJTextField = BasicComponentFactory.createFormattedTextField(valueModelxField, new DecimalFormat("0.#####"));

This is how I got it to work.

smuggledPancakes
  • 9,881
  • 20
  • 74
  • 113