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

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

android - MPAndroidChart - How to add Annotations or images to the chart -