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

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

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -