// initialize the display textBox for results
display = new TextBox();
// add a view change listener to the "data" model object
// and if the model changes, update the view
data.addChangeListener(new CalculatorChangeListener() {
public void onChange(CalculatorData data) {
display.setText(String.valueOf(data.getDisplay()));
}
});
display.setText("0");