Is there a getText() equivalent for Scala?/How do I "grab" from a textField in Scala? -
this how used in java:
public void actionperformed(actionevent evt) { string text = textfield.**gettext**(); textarea.append(text + newline); textfield.selectall();
}
thanks in advance!
exactly same:
val text = textfield.gettext
jtextfield
has gettext()
method can call same way in scala in java
Comments
Post a Comment