Hi,
I'm doing some practice on dialog boxes and I have a problem with closing them after introducing text in the TextField.
So, the dialog box is showing when clicking the right button, but isn't closing after clicking "OK" button.
l = a label with some text.
dl = dialog box.
tf = TextField in the dl.
What am I doing wrong?
public boolean action(Event evt, Object arg){ String btn = (String)arg; if (evt.target instanceof Button) l.setText(tf.getText()); dl.hide(); return true; }