Model « JTextField « Java Swing Q&A





1. Can a value from a JTextField be forced into the ValueModel (JGoodies)    stackoverflow.com

I have this code:

this.trigger = new Trigger();
this.presentationModel = new PresentationModel(this.personBean, this.trigger);
final ValueModel firstNameAdapter = presentationModel.getBufferedModel("firstName");
final JTextField firstNameTextField = BasicComponentFactory.createTextField(firstNameAdapter);
and
firstNameTextField.addActionListener(new ActionListener() 
    {
       ...

2. 2 textfields 1 model    coderanch.com